waaaaaaaaaa

This commit is contained in:
minjaesong
2026-03-02 16:48:19 +09:00
parent f4573536e4
commit 73c2b6986d
2 changed files with 24 additions and 0 deletions

View File

@@ -213,6 +213,10 @@ def build_font(assets_dir, output_path, no_bitmap=False, no_features=False):
g = glyphs[cp] g = glyphs[cp]
if g.props.is_illegal: if g.props.is_illegal:
continue continue
# Skip C0/C1 control characters and DEL — some platforms render
# their traced bitmaps, which is undesirable.
if cp <= 0x001F or cp == 0x007F or 0x0080 <= cp <= 0x009F:
continue
name = glyph_name(cp) name = glyph_name(cp)
if name == ".notdef": if name == ".notdef":
continue continue

View File

@@ -48,6 +48,26 @@ def generate_features(glyphs, kern_pairs, font_glyph_set,
def has(cp): def has(cp):
return glyph_name(cp) in font_glyph_set return glyph_name(cp) in font_glyph_set
preamble = """feature aalt {
languagesystem DFLT dflt;
languagesystem latn dflt;
languagesystem cyrl dflt;
languagesystem grek dflt;
languagesystem hang KOR ;
languagesystem hang KOH ;
languagesystem cyrl SRB ;
languagesystem cyrl BGR ;
languagesystem dev2 MAR ;
languagesystem dev2 NEP ;
languagesystem dev2 SAN ;
languagesystem dev2 SAT ;
languagesystem tml2 TAM ;
languagesystem sund SUN ;
} aalt;
"""
if preamble:
parts.append(preamble)
# ccmp feature (replacewith directives + Hangul jamo decomposition) # ccmp feature (replacewith directives + Hangul jamo decomposition)
ccmp_code = _generate_ccmp(replacewith_subs or [], has) ccmp_code = _generate_ccmp(replacewith_subs or [], has)
if ccmp_code: if ccmp_code: