Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to tell if a .woff font has hinting?

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?

like image 356
Zaqx Avatar asked Dec 10 '14 23:12

Zaqx


People also ask

What is font hinting and how does it work?

What is font hinting? The basics explained. In the early days of fonts, each glyph was stored as a bitmap at a range of sizes. Drawing it was a simple case of picking the right sized image of the glyph and putting it on the screen.

Why should you care about WOFF fonts?

The reason this is significant; the reason you should care and the reason this development is on par with the invention of wearing underwear on the outside to save on laundry bills - is because the ability to embed fonts enables the using of fonts that may not be on the client's system. And WOFF fonts are optimised for this task.

How do I use @font-face in CSS?

This takes a specified WOFF file and gives it a name that can then be used within CSS using the font-familyproperty. The @font-faceis a CSS rule, and to use it, it needs to go in a CSS file.

How do I convert a TTF file to WOFF2?

First, compile and install Google's woff2 tools by pasting all of the following into a terminal and pressing Enter: Once the tool has been compiled and installed, convert a single TTF or OTF file to WOFF2 by running: 1 Note that SFNT here refers to the SFNT table format that both TTF and OTF font formats are built around.


Video Answer


1 Answers

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.

like image 197
RoelN Avatar answered Oct 23 '22 14:10

RoelN