Package org.apache.flex.forks.batik.svggen.font.table

Examples of org.apache.flex.forks.batik.svggen.font.table.HheaTable


         * Contains overall horizontal metrics and caret slope.
         * Also contains line spacing (Mac).
         */
        private void processHheaTable(Font font)
        {
            HheaTable hhea = font.getHheaTable();

            if (hhea != null)
            {
                //TODO: I'm skeptical about these values, shouldn't the x-height and baseline be taken into consideration here?!
                ascent = (short)Math.rint(hhea.getAscender() * emScale * (useTwips ? SwfConstants.TWIPS_PER_PIXEL : 1));
                descent = (short)Math.rint(hhea.getDescender() * emScale * (useTwips ? SwfConstants.TWIPS_PER_PIXEL : 1));
                lineGap = (short)Math.rint(hhea.getLineGap() * emScale * (useTwips ? SwfConstants.TWIPS_PER_PIXEL : 1));
            }
            else
            {
              if (Trace.font)
                    Trace.trace("Font " + fontFamily + " did not have an HHEA Table.");
View Full Code Here

TOP

Related Classes of org.apache.flex.forks.batik.svggen.font.table.HheaTable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.