Is there a “glyph not found” character?

前端 未结 8 1556
清歌不尽
清歌不尽 2020-12-09 08:48

Let\'s assume we have a text that contains a Unicode character that cannot be displayed because our font has no corresponding glyph. Usually, a placeholder is displayed inst

相关标签:
8条回答
  • 2020-12-09 09:14

    Unicode uses these terms:

    • replacement glyph
    • missing glyph
    • interpretable but unrenderable character

    The Unicode Standard (10.0) does not define how they have to look, but it suggests in chapter 5.3 [PDF] that implementations display

    […] distinctive glyphs that give some general indication of their type […]

    to distinguish them from "unassigned code points". They give some examples:

    The Unicode glossary entry says:

    It often is shown as an open or black rectangle.


    tl;dr: There is no standardized look/glyph, it’s up to the implementation. To help users, implementations could display glyphs that indicate what type of character it is that can’t be displayed.

    0 讨论(0)
  • 2020-12-09 09:14

    There is a notdef character that means the glyph is not found. But it has no charcode. You can use the charcodes of controll characters to insert a notdef character (like "", U+0002)

    0 讨论(0)
提交回复
热议问题