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

Width index does not match glyph name index #2

Open
futurulus opened this issue Jun 8, 2019 · 2 comments
Open

Width index does not match glyph name index #2

futurulus opened this issue Jun 8, 2019 · 2 comments

Comments

@futurulus
Copy link

Following the README instructions to try to recreate the HanaMin font, I'm stuck at the following error:

tx: --- HanaMinA.svg
tx: (svr) Width index does not match glyph name index. Glyph index 0.

This is coming from the command

tx -t1 HanaMinA.svg HanaMinA.pfa >>HanaMinA.log 2>>HanaMinA.err

Have I forgotten a step, or is there a way to work around this?

@futurulus
Copy link
Author

After playing with the input file a bit, I figured out that there's a maximum of 65535 glyphs that tx is able to put in the font (including the missingGlyph). The current glyph data tries to create a font with 66895 glyphs, so deleting any 1,360+ glyph IDs from HanaMinA.list and rerunning make makes tx succeed.

For example, removing uac00-ud7a3 (Hangul Syllables) worked for me, if you don't need the font to support Korean. Another possibility is u2500-u2bff (box drawing, dingbats, math symbols, arrows, and Braille).

I imagine the right way to solve this is to move some of the glyphs into another font file (HanaMinB, etc.). I don't know which ones would be appropriate.

@kawabata
Copy link
Owner

kawabata commented Jun 11, 2019 via email

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