Examples of TrueTypeFontRecord


Examples of org.jfree.fonts.truetype.TrueTypeFontRecord

    //Log.warn ("TrueTypeFontKey : " + fontKey + " Font: " + font.isItalic() + " Encoding: "
    //          + encoding);
    final String rawFilename;
    if (fontRecord instanceof TrueTypeFontRecord)
    {
      final TrueTypeFontRecord ttfRecord = (TrueTypeFontRecord) fontRecord;
      if (ttfRecord.getCollectionIndex() >= 0)
      {
        rawFilename = ttfRecord.getFontFile() + ',' + ttfRecord.getCollectionIndex();
      }
      else
      {
        rawFilename = ttfRecord.getFontFile();
      }
    }
    else if (fontRecord instanceof FontSource)
    {
      final FontSource source = (FontSource) fontRecord;
View Full Code Here

Examples of org.jfree.fonts.truetype.TrueTypeFontRecord

    final FontRecord record = family.getFontRecord(bold, italics);
    if (record instanceof TrueTypeFontRecord)
    {
      // yes, thats a bit hacky, but we have to deal with iTexts enforced
      // OS2table requirement here.
      TrueTypeFontRecord ttfRecord = (TrueTypeFontRecord) record;
      if (ttfRecord.isNonWindows())
      {
        // itext is not able to handle fonts which dont have an OS/2 table.
        return null;
      }
    }
View Full Code Here

Examples of org.jfree.fonts.truetype.TrueTypeFontRecord

          throws DocumentException
  {
    final String rawFilename;
    if (fontRecord instanceof TrueTypeFontRecord)
    {
      final TrueTypeFontRecord ttfRecord = (TrueTypeFontRecord) fontRecord;
      if (ttfRecord.getCollectionIndex() >= 0)
      {
        rawFilename = ttfRecord.getFontFile() + "," + ttfRecord.getCollectionIndex();
      }
      else
      {
        rawFilename = ttfRecord.getFontFile();
      }
    }
    else if (fontRecord instanceof FontSource)
    {
      final FontSource source = (FontSource) fontRecord;
View Full Code Here

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

    //Log.warn ("TrueTypeFontKey : " + fontKey + " Font: " + font.isItalic() + " Encoding: "
    //          + encoding);
    final String rawFilename;
    if (fontRecord instanceof TrueTypeFontRecord)
    {
      final TrueTypeFontRecord ttfRecord = (TrueTypeFontRecord) fontRecord;
      if (ttfRecord.getCollectionIndex() >= 0)
      {
        rawFilename = ttfRecord.getFontSource() + ',' + ttfRecord.getCollectionIndex();
      }
      else
      {
        rawFilename = ttfRecord.getFontSource();
      }
    }
    else if (fontRecord instanceof FontSource)
    {
      final FontSource source = (FontSource) fontRecord;
View Full Code Here

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

      final CompoundFontRecord cfr = (CompoundFontRecord) record;
      record = cfr.getBase();
    }
    if (record instanceof TrueTypeFontRecord)
    {
      final TrueTypeFontRecord trueTypeFontRecord = (TrueTypeFontRecord) record;
      attrList.setAttribute(null, "source", String.valueOf(trueTypeFontRecord.getFontSource()));
      writer.writeTag(null, "font-record", attrList, true);

      records.put(trueTypeFontRecord.getFontSource(), record);
    }
  }
View Full Code Here

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

    //Log.warn ("TrueTypeFontKey : " + fontKey + " Font: " + font.isItalic() + " Encoding: "
    //          + encoding);
    final String rawFilename;
    if (fontRecord instanceof TrueTypeFontRecord)
    {
      final TrueTypeFontRecord ttfRecord = (TrueTypeFontRecord) fontRecord;
      if (ttfRecord.getCollectionIndex() >= 0)
      {
        rawFilename = ttfRecord.getFontSource() + ',' + ttfRecord.getCollectionIndex();
      }
      else
      {
        rawFilename = ttfRecord.getFontSource();
      }
    }
    else if (fontRecord instanceof FontSource)
    {
      final FontSource source = (FontSource) fontRecord;
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.