Examples of NameTable


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

             * 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
             * with our parsing, since it wasn't going to work anyway.
             */
            NameTable nameTable = null;

            try {
                nameTable = (NameTable) ttf.getTable ("name");
            } catch (Exception ex) {
                System.out.println ("Error reading name table for font " +
View Full Code Here

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

             * 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
             * with our parsing, since it wasn't going to work anyway.
             */
            NameTable nameTable = null;

            try {
                nameTable = (NameTable) ttf.getTable ("name");
            } catch (Exception ex) {
                System.out.println ("Error reading name table for font " +
View Full Code Here

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

         * Some numbers have a standard meaning such as font name and copyright.
         * Arbitrary numbered strings can also be present.
         */
        private void processNameTable(Font font)
        {
            NameTable name = font.getNameTable();

            if (name != null)
            {
                fontFamily = name.getRecord(Table.nameFontFamilyName);
                subFamilyName = name.getRecord(Table.nameFontSubfamilyName);
              postscriptName = name.getRecord(Table.namePostscriptName);

                if (subFamilyName != null)
                {
                    style = guessStyleFromSubFamilyName(subFamilyName);
                }
View Full Code Here

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

      else
      {
        Os2Table os2Table = font.getOS2Table();
        int fsType = os2Table.getLicenseType();

        NameTable name = font.getNameTable();
        String copyright = name.getRecord(Table.nameCopyrightNotice);
        String trademark = name.getRecord(Table.nameTrademark);

        String postScriptName = name.getRecord(Table.namePostscriptName);
        LocalFont localFont = new LocalFont(postScriptName, path, fsType, copyright, trademark);
        LocalFont cachedFont = fonts.get(postScriptName);

        if (cachedFont != null)
        {
View Full Code Here

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

         * Some numbers have a standard meaning such as font name and copyright.
         * Arbitrary numbered strings can also be present.
         */
        private void processNameTable(Font font)
        {
            NameTable name = font.getNameTable();

            if (name != null)
            {
                fontFamily = name.getRecord(Table.nameFontFamilyName);
                subFamilyName = name.getRecord(Table.nameFontSubfamilyName);
              postscriptName = name.getRecord(Table.namePostscriptName);

                if (subFamilyName != null)
                {
                    style = guessStyleFromSubFamilyName(subFamilyName);
                }
View Full Code Here

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

      else
      {
        Os2Table os2Table = font.getOS2Table();
        int fsType = os2Table.getLicenseType();

        NameTable name = font.getNameTable();
        String copyright = name.getRecord(Table.nameCopyrightNotice);
        String trademark = name.getRecord(Table.nameTrademark);

        String postScriptName = name.getRecord(Table.namePostscriptName);
        LocalFont localFont = new LocalFont(postScriptName, path, fsType, copyright, trademark);
        LocalFont cachedFont = fonts.get(postScriptName);

        if (cachedFont != null)
        {
View Full Code Here

Examples of org.jfree.fonts.truetype.NameTable

      if ("AmerType Md BT".equals(name))
      {
        final FontSource fr = (FontSource) fofam.getFontRecord(false, false);
        final FontDataInputSource fs = fr.getFontInputSource();
        final TrueTypeFont ttf = new TrueTypeFont(fs);
        final NameTable nt = (NameTable) ttf.getTable(NameTable.TABLE_ID);
        //PostscriptInformationTable pst = ttf.getTable(PostscriptInformationTable.TABLE_ID);
        final FontHeaderTable fht = (FontHeaderTable) ttf.getTable(FontHeaderTable.TABLE_ID);
        /*
        TrueTypeFontMetricsFactory tfmf = new TrueTypeFontMetricsFactory();
        FontMetrics fm =
View Full Code Here

Examples of org.jfree.fonts.truetype.NameTable

      if (name.equals("AmerType Md BT"))
      {
        FontSource fr = (FontSource) fofam.getFontRecord(false, false);
        FontDataInputSource fs = fr.getFontInputSource();
        TrueTypeFont ttf = new TrueTypeFont(fs);
        NameTable nt = (NameTable) ttf.getTable(NameTable.TABLE_ID);
        //PostscriptInformationTable pst = ttf.getTable(PostscriptInformationTable.TABLE_ID);
        FontHeaderTable fht = (FontHeaderTable) ttf.getTable(FontHeaderTable.TABLE_ID);
        /*
        TrueTypeFontMetricsFactory tfmf = new TrueTypeFontMetricsFactory();
        FontMetrics fm =
View Full Code Here

Examples of org.pentaho.reporting.libraries.fonts.truetype.NameTable

        final ResourceKey fontSource = resourceManager.createKey(new File(fr.getFontSource()));
        final FontDataInputSource fs =
            new ResourceFontDataInputSource(resourceManager, fontSource);
        final TrueTypeFont ttf = new TrueTypeFont(fs);
        final NameTable nt = (NameTable) ttf.getTable(NameTable.TABLE_ID);
        //PostscriptInformationTable pst = ttf.getTable(PostscriptInformationTable.TABLE_ID);
        final FontHeaderTable fht = (FontHeaderTable) ttf.getTable(FontHeaderTable.TABLE_ID);
        /*
        TrueTypeFontMetricsFactory tfmf = new TrueTypeFontMetricsFactory();
        FontMetrics fm =
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.