Examples of HeadTable


Examples of com.sun.pdfview.font.ttf.HeadTable

            cmapTable = (CmapTable) ttf.getTable ("cmap");
            postTable = (PostTable) ttf.getTable ("post");
            hmtxTable = (HmtxTable) ttf.getTable ("hmtx");

            // read the units per em from the head table
            HeadTable headTable = (HeadTable) ttf.getTable ("head");
            unitsPerEm = headTable.getUnitsPerEm ();

            /* Find out if we have the right info in our name table.
             * This is a hack because Java can only deal with fonts that
             * have a Microsoft encoded name in their name table (PlatformID 3).
             * We'll 'adjust' the font to add it if not, and take our chances
View Full Code Here

Examples of com.sun.pdfview.font.ttf.HeadTable

            this.cmapTable = (CmapTable) ttf.getTable ("cmap");
            this.postTable = (PostTable) ttf.getTable ("post");
            this.hmtxTable = (HmtxTable) ttf.getTable ("hmtx");

            // read the units per em from the head table
            HeadTable headTable = (HeadTable) ttf.getTable ("head");
            this.unitsPerEm = headTable.getUnitsPerEm ();

            /* Find out if we have the right info in our name table.
             * This is a hack because Java can only deal with fonts that
             * have a Microsoft encoded name in their name table (PlatformID 3).
             * We'll 'adjust' the font to add it if not, and take our chances
View Full Code Here

Examples of com.sun.pdfview.font.ttf.HeadTable

                        // swallow
                    }
                }
            }
            // read the units per em from the head table
            HeadTable head = (HeadTable) font.getTable ("head");
            unitsPerEm = head.getUnitsPerEm ();
        } else {
            font = null;
        }
//        System.out.println ("TTFFont: ttfObj: " + ttfObj + ", fontName: " + fontName);
View Full Code Here

Examples of org.apache.batik.svggen.font.table.HeadTable

         * Also contains font appearance (Mac). Must be called before
         * reading HHEA table.
         */
        private void processHeadTable(Font font)
        {
            HeadTable head = font.getHeadTable();

            if (head != null)
            {
                unitsPerEm = head.getUnitsPerEm();
            }
            else
            {
              if (Trace.font)
                    Trace.trace("Font " + fontFamily + " did not have an HEAD Table.");
View Full Code Here

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

         * Also contains font appearance (Mac). Must be called before
         * reading HHEA table.
         */
        private void processHeadTable(Font font)
        {
            HeadTable head = font.getHeadTable();

            if (head != null)
            {
                unitsPerEm = head.getUnitsPerEm();
            }
            else
            {
              if (Trace.font)
                    Trace.trace("Font " + fontFamily + " did not have an HEAD Table.");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.