Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I output all glyphs, but with the "unicode" field included in the JSON where appropriate? #91

Open
oviano opened this issue Nov 8, 2023 · 1 comment

Comments

@oviano
Copy link

oviano commented Nov 8, 2023

Loving the whole system by the way, been using this for years.

I have been using a CharSet.txt consisting of basically 0x0000 -> 0x10ffff.

I realised though that this misses out glyph index 0, which is ".notdef".

So I thought, ok, I should generate using GlyphSet.txt. However, although this seems to work, in that it outputs the glyphs in the range, I noticed the entries in the JSON now don't have the "unicode" field.

So how can I get it to output all glyphs in a font (surely a common requirement?) but include their unicodes, or say, zero, or some undefined value if they don't have a unicode value (such as .notdef amongst some others)?

@Chlumsky
Copy link
Owner

Chlumsky commented Mar 3, 2024

I recently added an -allglyphs option but it still doesn't provide Unicode values because the mapping between glyphs and Unicode characters is a bit more complex, but I will try to find a solution at some point in the future (currently I don't have much time for this project unfortunately).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants