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

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


    final BaseFont baseFont = baseFontSupport.createBaseFont
        (fontName, bold, italic, context.getEncoding(), context.isEmbedded());

    return new BaseFontFontMetrics
        (new DefaultFontNativeContext(bold, italic), baseFont, (float) context.getFontSize());
  }
View Full Code Here


    if (record.isItalic())
    {
      style |= Font.ITALIC;
    }
    final Font font = new Font(record.getFamily().getFamilyName(), style, (int) context.getFontSize());
    return new AWTFontMetrics(new DefaultFontNativeContext(record.isBold(), record.isItalic()), font, context);
  }
View Full Code Here

{
  private MonospaceFontMetrics metrics;

  public MonospaceFontMetricsFactory(final float lpi, final float cpi)
  {
    this.metrics = new MonospaceFontMetrics(new DefaultFontNativeContext(false, false), cpi, lpi);
  }
View Full Code Here

  private LocalFontMetricsBase base;
  private float size;

  public LocalFontMetrics(final LocalFontMetricsBase base, final float size)
  {
    this.record = new DefaultFontNativeContext(false, false);
    this.base = base;
    this.size = size;
  }
View Full Code Here

TOP

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

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.