-
Notifications
You must be signed in to change notification settings - Fork 1
Description
-
For Noto Sans CJK font glyphs, there are cases where a glyph can be assigned to multiple codepoints. For example, everything in Kangxi Radicals map to a codepoint in CJK Unified Ideographs. Since the Kangxi Radicals have a lower codepoint number than the standard one, it gets assigned to
glyph.unicode. This would lead to the actual CJK codepoint ends up being fallen back to a separate font.unicode2mysql/bin/fonts_to_sql.js
Lines 115 to 118 in ef03bc9
if (! image_map.has(glyph.unicode)) { image_map.set(glyph.unicode, []); } const hex = Number(glyph.unicode).toString(16).toUpperCase().padStart(4, '0'); I would recommend to use
glyph.unicodesto map the glyph to all relevant code points. -
For CJK codepoints not covered by Noto Sans CJK, I recommend to use Plangothic as a fallback above Unifont and Unifont Upper. Plangothic is an open source (SIL OFL 1.1) font based on the style of Noto Sans CJK / Source Han Sans and covers all glyphs up to CJK Unified Ideographs Extension J (2025). Plangothic has a better visual consistency with the rest Noto Sans superfamily, and is less prone to missing/joined structures in the pixelated Unifont Upper. Note that Plangothic would only cover the same glyph variant as in Noto Sans CJK SC.