Package org.pentaho.reporting.libraries.fonts.registry

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


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

    {
      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 ResourceManager resourceManager = new ResourceManager();
        resourceManager.registerDefaults();

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

      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.getFontSource());
    }
    else
    {
      System.out.println("  " + record.getFamily().getFamilyName() + " italics:" + record.isItalic() + " oblique:" + record.isOblique() + " bold: " + record.isBold());
    }
View Full Code Here

    {
      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 ResourceManager resourceManager = new ResourceManager();
        resourceManager.registerDefaults();

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

      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.getFontSource());
    }
    else
    {
      System.out.println("  " + record.getFamily().getFamilyName() + " italics:" + record.isItalic() + " oblique:" + record.isOblique() + " bold: " + record.isBold());
    }
View Full Code Here

        {

          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

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

TOP

Related Classes of org.pentaho.reporting.libraries.fonts.registry.FontSource

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.