public interface DrawFontManager
Modifier and Type | Method and Description |
---|---|
Font |
createAWTFont(Graphics2D graphics,
FontInfo fontInfo,
double size,
boolean bold,
boolean italic)
Create an AWT font object with the given attributes
|
FontInfo |
getFallbackFont(Graphics2D graphics,
FontInfo fontInfo)
In case the original font doesn't contain a glyph, use the
returned fallback font as an alternative
|
FontInfo |
getMappedFont(Graphics2D graphics,
FontInfo fontInfo)
select a font to be used to paint text
|
String |
mapFontCharset(Graphics2D graphics,
FontInfo fontInfo,
String text)
Map text charset depending on font family.
|
FontInfo getMappedFont(Graphics2D graphics, FontInfo fontInfo)
graphics
- the graphics context to request additional rendering hintsfontInfo
- the font info object corresponding to the text run fontFontInfo getFallbackFont(Graphics2D graphics, FontInfo fontInfo)
graphics
- the graphics context to request additional rendering hintsfontInfo
- the font info object corresponding to the text run fontString mapFontCharset(Graphics2D graphics, FontInfo fontInfo, String text)
Currently this only maps for wingdings font (into unicode private use area)
graphics
- the graphics context to request additional rendering hintsfontInfo
- the font info object corresponding to the text run fonttext
- the raw textStringUtil.mapMsCodepointString(String)
Font createAWTFont(Graphics2D graphics, FontInfo fontInfo, double size, boolean bold, boolean italic)
graphics
- the graphics context to request additional rendering hintsfontInfo
- the font info object corresponding to the text run fontsize
- the font size in pointsbold
- true
if the font is bolditalic
- true
if the font is italicCopyright © 2010 - 2020 Adobe. All Rights Reserved