Truly independent web browser
<!DOCTYPE html>
<meta charset="utf-8">
<style>
@font-face {
font-family: "Noto Sans KR jamo";
src: url("../../Assets/NotoSansKR-jamo-subset.otf");
}
span {
font: 40px "Noto Sans KR jamo";
}
</style>
<!-- U+115F HANGUL CHOSEONG FILLER, then U+1193 HANGUL JUNGSEONG U-I -->
<span id="filler">ᅟᆓ</span>
<!-- U+1100 HANGUL CHOSEONG KIYEOK, then U+1193 -->
<span id="kiyeok">ᄀᆓ</span>
<!-- U+115F alone, and U+1160 HANGUL JUNGSEONG FILLER alone: the font draws each as a spacing glyph. -->
<span id="lone-filler">ᅟ</span>
<span id="lone-jungseong-filler">ᅠ</span>
<!-- U+3164 HANGUL FILLER alone, in a font with no Hangul at all: Nothing has a glyph for it. -->
<span id="lone-filler-without-glyph" style="font: 40px serif">ㅤ</span>
<script src="include.js"></script>
<script>
asyncTest(async done => {
await document.fonts.ready;
const width = id => document.getElementById(id).getBoundingClientRect().width;
println(`syllable with a filler initial has a width: ${width("filler") > 0}`);
println(`syllable with a kiyeok initial has a width: ${width("kiyeok") > 0}`);
println(`lone filler has a width: ${width("lone-filler") > 0}`);
println(`lone jungseong filler has a width: ${width("lone-jungseong-filler") > 0}`);
println(`lone filler with no glyph has no width: ${width("lone-filler-without-glyph") === 0}`);
done();
});
</script>