Skip to content

Some suggestions surrounding CJK glyphs #5

@blueset

Description

@blueset
  1. 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.

    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.unicodes to map the glyph to all relevant code points.

  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions