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

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


    this.usableByFlex = true; //installable || editable;
  }

  public static FSType getFSType(Font font)
  {
    Os2Table table = font.getOS2Table();
    return getFSType(table.getLicenseType());
  }
View Full Code Here


         * 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.");
View Full Code Here

      {
        System.err.println("Error reading " + file + ": " + err);
      }
      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);
View Full Code Here

      {
        System.err.println("Error reading " + file + ": " + err);
      }
      else
      {
        Os2Table table = font.getOS2Table();
        Integer integ = new Integer(table.getLicenseType());
        ArrayList<String> list = fonts.get(integ);
        if (list == null)
        {
          list = new ArrayList<String>();
          fonts.put(integ, list);
View Full Code Here

TOP

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

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.