question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Post table problem after straight ttf>ttx>ttf (no changes)

See original GitHub issue

test fonts: http://ashokabuildcon.com/tushar/NewWebsite/css/fonts/

ttf/ttx/ttf#1 files.zip

matt$ ttx tt0003c_.ttf 
Dumping "tt0003c_.ttf" to "tt0003c_.ttx"...
Dumping 'GlyphOrder' table...
Dumping 'head' table...
Dumping 'hhea' table...
Dumping 'maxp' table...
Dumping 'OS/2' table...
Dumping 'hmtx' table...
Dumping 'cmap' table...
Dumping 'fpgm' table...
Dumping 'prep' table...
Dumping 'cvt ' table...
Dumping 'loca' table...
Dumping 'glyf' table...
Dumping 'kern' table...
Dumping 'name' table...
Dumping 'post' table...
Dumping 'PCLT' table...

matt$ ttx tt0003c_.ttx
Compiling "tt0003c_.ttx" to "tt0003c_#1.ttf"...
Parsing 'GlyphOrder' table...
Parsing 'head' table...
Parsing 'hhea' table...
Parsing 'maxp' table...
Parsing 'OS/2' table...
Parsing 'hmtx' table...
Parsing 'cmap' table...
Parsing 'fpgm' table...
Parsing 'prep' table...
Parsing 'cvt ' table...
Parsing 'loca' table...
Parsing 'glyf' table...
Parsing 'kern' table...
Parsing 'name' table...
Parsing 'post' table...
Parsing 'PCLT' table...

matt$ open tt0003c_#1.ttf 

Font Book says: screen shot 2017-11-28 at 10 02 10

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:33 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
gingerbeardmancommented, Nov 29, 2017

Boom. It’s fixed. Nicely done! Thanks for everything.

So it was the duplicate glyphs in extra names that were the problem with ftxvalidator?

Aside: if you’re interested, those ancient Bitstream ttNNNNc_.ttf files are used on my old Sony eBook Reader but it only shipped with regular sans/serif/mono. By completing those families the device now uses the proper weights, whereas previously it synthesised b/i/bi using the regular weight. The device is also quite particular about the font names so I am using ttx to rename the Pan-European WGL4 fonts as non-WGL4 fonts. 👍

1reaction
anthrotypecommented, Nov 28, 2017

I believe ftxvalidator uses the same API as FontBook, so you can automate running the former with some shell script. you can get it from https://developer.apple.com/download/more/?=font

I don’t think it’s “open source” though

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found