Examples of FontSource


Examples of org.jfree.fonts.registry.FontSource

      System.out.println("  - (there is no font defined for that style and family.)");
      return;
    }
    if (record instanceof FontSource)
    {
      final FontSource fs = (FontSource) record;
      System.out.println("  " + record.getFamily().getFamilyName() + " italics:" + record.isItalic() + " oblique:" + record.isOblique() + " bold: " + record.isBold() + ' ' + fs.getFontFile());
    }
    else
    {
      System.out.println("  " + record.getFamily().getFamilyName() + " italics:" + record.isItalic() + " oblique:" + record.isOblique() + " bold: " + record.isBold());
    }
View Full Code Here

Examples of org.jfree.fonts.registry.FontSource

    {
      final String name = names[i];
      final FontFamily fofam = tfr.getFontFamily(name);
      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);
        /*
 
View Full Code Here

Examples of org.jfree.fonts.registry.FontSource

        {

          boolean embeddedOverride = embedded;
          if (embedded == true && registryFontRecord instanceof FontSource)
          {
            final FontSource source = (FontSource) registryFontRecord;
            if (source.isEmbeddable() == false)
            {
              Log.warn("License of font forbids embedded usage for font: " + fontKey);
              // strict mode here?
              embeddedOverride = false;
            }
View Full Code Here

Examples of org.jfree.fonts.registry.FontSource

        rawFilename = ttfRecord.getFontFile();
      }
    }
    else if (fontRecord instanceof FontSource)
    {
      final FontSource source = (FontSource) fontRecord;
      rawFilename = source.getFontFile();
    }
    else
    {
      return null;
    }
View Full Code Here

Examples of org.jfree.fonts.registry.FontSource

        // we create one..

        boolean embeddedOverride = embedded;
        if (embedded == true && registryFontRecord instanceof FontSource)
        {
          final FontSource source = (FontSource) registryFontRecord;
          if (source.isEmbeddable() == false)
          {
            Log.warn("License of font forbids embedded usage for font: " + fontKey);
            // strict mode here?
            embeddedOverride = false;
          }
View Full Code Here

Examples of org.jfree.fonts.registry.FontSource

        rawFilename = ttfRecord.getFontFile();
      }
    }
    else if (fontRecord instanceof FontSource)
    {
      final FontSource source = (FontSource) fontRecord;
      rawFilename = source.getFontFile();
    }
    else
    {
      return null;
    }
View Full Code Here

Examples of org.jfree.fonts.registry.FontSource

      return;
    }
    System.out.println("  " + record.getFamily().getFamilyName() + " italics:" + record.isItalic() + " oblique:" + record.isOblique() + " bold: " + record.isBold());
    if (record instanceof FontSource)
    {
      final FontSource source = (FontSource) record;
      final String[] allNames = source.getAllNames();
      for (int i = 0; i < allNames.length; i++)
      {
        final String name = allNames[i];
        System.out.println("  Alias: " + i + " Name:" + name);
      }

      final String[] allVariants = source.getAllVariants();
      for (int i = 0; i < allVariants.length; i++)
      {
        final String name = allVariants[i];
        System.out.println("  Variant: " + i + " Name:" + name);
      }
View Full Code Here

Examples of org.jfree.fonts.registry.FontSource

    {
      final String name = names[i];
      final FontFamily fofam = tfr.getFontFamily(name);
      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);
        /*
 
View Full Code Here

Examples of org.pentaho.reporting.libraries.fonts.registry.FontSource

        {

          boolean embeddedOverride = embedded;
          if (embedded == true && registryFontRecord instanceof FontSource)
          {
            final FontSource source = (FontSource) registryFontRecord;
            if (source.isEmbeddable() == false)
            {
              logger.warn("License of font forbids embedded usage for font: " + fontKey);
              // strict mode here?
              embeddedOverride = false;
            }
View Full Code Here

Examples of org.pentaho.reporting.libraries.fonts.registry.FontSource

        rawFilename = ttfRecord.getFontSource();
      }
    }
    else if (fontRecord instanceof FontSource)
    {
      final FontSource source = (FontSource) fontRecord;
      rawFilename = source.getFontSource();
    }
    else
    {
      return null;
    }
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.