Skip to content

alias GlyphInfoCallback


(alias) GlyphInfoCallback = fun(g: Node) -> string?

The glyph_info callback can be set to report a useful representation of a glyph.

When nil is returned the character code is printed, otherwise the returned string is used. By default the UTF-8 representation is shown which is not always that useful, especially when there is no real representation. Keep in mind that setting this callback can change the log in an incompatible way.

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!