Replies: 1 comment 6 replies
-
Hi there, interesting idea. I'm not sure what you mean here by "defined code points". A glyph might be represented by multiple code points. e.g. Base Character CodePoint + Variation Selector CodePoint. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As far as I can tell, it is currently not possible to obtain a list of defined code points (or similarly, a list of all available glyph mappings) in a font. This feature can be useful in case someone wants to use this library to extract font information or for my particular use case: to automatically generate glyph maps for OpenGL.
From my quick investigation it seems to be relatively easy to add a function to the
Font
orFontMetrics
type that exposes the list of defined code points and also expose theGlyphId
defined inGlyphMetrics
. This would in turn allow users to relatively easily reconstruct these glyph mapping tables themselves.I also took the time to implement this and create a pull request: #308
Beta Was this translation helpful? Give feedback.
All reactions