* Contains line spacing, font weight, font style, codepoint ranges (codepage and Unicode)
* covered by glyphs, overall appearance, sub- and super-script support, strike out information.
*/
private void processOS2Table(Font font)
{
Os2Table os2 = font.getOS2Table();
if (os2 != null)
{
if (!forceAscii)
{
int winAscent = os2.getWinAscent();
ascent = (short)Math.rint(winAscent * emScale * (useTwips ? SwfConstants.TWIPS_PER_PIXEL : 1));
int winDescent = os2.getWinDescent();
descent = (short)Math.rint(winDescent * emScale * (useTwips ? SwfConstants.TWIPS_PER_PIXEL : 1));
int winLeading = os2.getTypoLineGap();
lineGap = (short)Math.rint(winLeading * emScale * (useTwips ? SwfConstants.TWIPS_PER_PIXEL : 1));
}
horizAdvanceX = os2.getAvgCharWidth();
panose = os2.getPanose().toString();
usFirstCharIndex = os2.getFirstCharIndex();
}
else
{
if (Trace.font)
Trace.trace("Font " + fontFamily + " did not have an OS/2 Table.");