102103104105106107108
final BaseFont baseFont = baseFontSupport.createBaseFont (fontName, bold, italic, context.getEncoding(), context.isEmbedded()); return new BaseFontFontMetrics (new DefaultFontNativeContext(bold, italic), baseFont, (float) context.getFontSize()); }
58596061626364
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); }
32333435363738
{ private MonospaceFontMetrics metrics; public MonospaceFontMetricsFactory(final float lpi, final float cpi) { this.metrics = new MonospaceFontMetrics(new DefaultFontNativeContext(false, false), cpi, lpi); }
282930313233343536
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; }