10

I have a .woff font that is rendering very poorly on Windows platforms. I suspect this may be due to a lack of hinting information but I need to make sure.

Can you recommend a tool that can inspect the font file and tell me if hinting metrics exist within it?

Zaqx
  • 1,401
  • 8
  • 17
  • 2
    Where does PostScript come into this ? – KenS Dec 11 '14 at 08:13
  • It doesn't that I'm aware of. I added the tag because I figured if you’re familiar with Postscript you may also know some good font tools – Zaqx Dec 11 '14 at 16:20
  • ttfdump for TrueType fonts, t1disasm and cffdisasm for type 1 and CFF fonts. The Microsoft Font Validator tool for TrueType fonts. Note that TrueType fonts don't have hinting in the way you might think of from PostScript fonts. A whole slew of other tools from Microsoft http://www.microsoft.com/typography/DevToolsOverview.mspx – KenS Dec 11 '14 at 17:12
  • Thanks! Do you know anything for woff? – Zaqx Dec 11 '14 at 17:13
  • No, but I was under the impression those were compressed TT/OT fonts,so if you decompress it you should be able to use an appropriate tool on it. – KenS Dec 11 '14 at 18:32
  • "I was under the impression those were compressed TT/OT fonts" I’ve read that also, all of the tools I’ve found that offer to convert woff to another format make no mention of a way to "unzip" or "decompress" the woff file to see what format it was before compression. – Zaqx Dec 11 '14 at 19:09
  • My concern is by just converting woff to TT the converter might introduce hinting that wasn't there before. – Zaqx Dec 11 '14 at 19:12
  • 2
    As I said,as far as I'm aware a WOFF font is a compressed TT/OT font. So decompressing it is not 'converting' it to TT, its just decompressing what is already there. The compression used isn't zip or anything though, so you'll need to read the spec and find out what compression *is* used (there are at least 2, one for 1.0 and a different one for 2.0). You may need to write a decompresser too, though I'd expect one is around 'somewhere'. – KenS Dec 12 '14 at 08:16
  • 2
    See this post http://stackoverflow.com/questions/9017922/how-to-convert-woff-to-ttf-otf-via-command-line – KenS Dec 12 '14 at 08:19

1 Answers1

11

TTX/Fonttools can decompress and dump OpenType fonts. Check the TTGlyph entries in glyf table. If these contain an instructions element: this contains the hinting info. If it's not there, the glyphs don't have hinting.

RoelN
  • 2,181
  • 13
  • 15
  • 2
    Thanks! This tool worked and your instructions on where to look for the hinting was super useful. Additionally I found http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=IWS-Chapter08#79671773 to confirm that the hinting information is stored where you said it is. – Zaqx Dec 12 '14 at 20:01