CAP Height Metric Location in TTF File
Posted: Wed Dec 02, 2015 6:23 pm
I am working on a project that requires precise placement of a font for LASER engraving. Specifically centering a font's cap height on a button for centered text.
My question is, where in the TTF tables is the cap height stored?
I use Font Creator currently, but I know from past experience that Font Lab uses cap height too. So, I assume that this information is stored within the font and is not just pulled by Font Creator for the "H" height (Or maybe it is???).
I know how to adjust the cap height in the metrics tab, but my programmer can't find a way to access the Cap Height information directly from the TTF file. I can certainly give them the values for the fonts that I create, but I need a method that works with any font not just our custom fonts. I know that the Right Side Bearing isn't stored directly in the font, but is a calculated value using the Glyph width, Left Side Bearing, and Advance Width. Is that cap height also a calculated value? If so, how can I do that calculation from the font tables.
I know this might be more of an API question, but I need to point them in the right direction so that they can use my fonts.
Thanks!!!
My question is, where in the TTF tables is the cap height stored?
I use Font Creator currently, but I know from past experience that Font Lab uses cap height too. So, I assume that this information is stored within the font and is not just pulled by Font Creator for the "H" height (Or maybe it is???).
I know how to adjust the cap height in the metrics tab, but my programmer can't find a way to access the Cap Height information directly from the TTF file. I can certainly give them the values for the fonts that I create, but I need a method that works with any font not just our custom fonts. I know that the Right Side Bearing isn't stored directly in the font, but is a calculated value using the Glyph width, Left Side Bearing, and Advance Width. Is that cap height also a calculated value? If so, how can I do that calculation from the font tables.
I know this might be more of an API question, but I need to point them in the right direction so that they can use my fonts.
Thanks!!!