| Modifier and Type | Method and Description |
|---|---|
| public Font | Returns: the AWT font objectthe graphics context to request additional rendering hints graphics, FontInfo the font info object corresponding to the text run font fontInfo, double the font size in points size, boolean true if the font is boldtrue if the font is italicCreate an AWT font object with the given attributes |
| public FontInfo | Returns: the font to be used as a fallback for the original typefacethe graphics context to request additional rendering hints graphics, FontInfo the font info object corresponding to the text run font fontInfo)In case the original font doesn't contain a glyph, use the returned fallback font as an alternative |
| public FontInfo | Returns: the font to be used to paint textthe graphics context to request additional rendering hints graphics, FontInfo the font info object corresponding to the text run font fontInfo)select a font to be used to paint text |
| public String | Returns: String with mapped codepointsthe graphics context to request additional rendering hints graphics, FontInfo the font info object corresponding to the text run font fontInfo, String the raw text text)Map text charset depending on font family. |
| createAWTFont | back to summary |
|---|---|
| public Font createAWTFont(Graphics2D graphics, FontInfo fontInfo, double size, boolean bold, boolean italic) Create an AWT font object with the given attributes
| |
| getFallbackFont | back to summary |
|---|---|
| public FontInfo getFallbackFont(Graphics2D graphics, FontInfo fontInfo) In case the original font doesn't contain a glyph, use the returned fallback font as an alternative
| |
| getMappedFont | back to summary |
|---|---|
| public FontInfo getMappedFont(Graphics2D graphics, FontInfo fontInfo) select a font to be used to paint text
| |
| mapFontCharset | back to summary |
|---|---|
| public String mapFontCharset(Graphics2D graphics, FontInfo fontInfo, String text) Map text charset depending on font family. Currently this only maps for wingdings and symbol font (into unicode private use area)
Depending if the requested font is installed in the system, tbe mapped string varies:
| |