public final class FontUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
checkAwtFont(String name,
boolean ignoreMissingFont) |
static void |
copyNonNullOwnProperties(JRFont srcFont,
JRFont destFont) |
Map<AttributedCharacterIterator.Attribute,Object> |
getAttributesWithoutAwtFont(Map<AttributedCharacterIterator.Attribute,Object> attributes,
JRFont font) |
Font |
getAwtFont(JRFont font,
Locale locale)
Returns a java.awt.Font instance by converting a JRFont instance.
|
Font |
getAwtFontFromBundles(String name,
int style,
int size,
Locale locale,
boolean ignoreMissingFont) |
Collection<String> |
getFontFamilyNames()
Returns the font family names available through extensions, in alphabetical order.
|
FontInfo |
getFontInfo(String name,
Locale locale)
Returns font information containing the font family, font face and font style.
|
static FontUtil |
getInstance(JasperReportsContext jasperReportsContext) |
void |
resetThreadMissingFontsCache() |
public static FontUtil getInstance(JasperReportsContext jasperReportsContext)
public static void copyNonNullOwnProperties(JRFont srcFont, JRFont destFont)
public Map<AttributedCharacterIterator.Attribute,Object> getAttributesWithoutAwtFont(Map<AttributedCharacterIterator.Attribute,Object> attributes, JRFont font)
public FontInfo getFontInfo(String name, Locale locale)
name - the font family or font face namelocale - the localepublic Collection<String> getFontFamilyNames()
public Font getAwtFontFromBundles(String name, int style, int size, Locale locale, boolean ignoreMissingFont)
public void resetThreadMissingFontsCache()
public void checkAwtFont(String name, boolean ignoreMissingFont)
public Font getAwtFont(JRFont font, Locale locale)
Copyright © 2014. All rights reserved.