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.
The x and cap heights are listed in the table right after the code page listing which appears is where your’s stops. At least with the tool I am using that is where they are found…
DTL’s OTMaster. There’s a free version. I use it for a couple of reasons having to do when I was helping a company implement some features in their software having to do with fonts.