public interface IPdfBoxGraphics2DFontTextDrawer
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv
Enviroment for font based drawing of text
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDrawText(AttributedCharacterIterator iterator,
IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env) |
void |
drawText(AttributedCharacterIterator iterator,
IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env) |
FontMetrics |
getFontMetrics(Font font,
IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env) |
boolean canDrawText(AttributedCharacterIterator iterator, IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env) throws IOException, FontFormatException
iterator - Has the text and all its propertiesenv - EnvironmentIOException - when a font can not be loaded or a paint can't be applied.FontFormatException - when the font file can not be loadedvoid drawText(AttributedCharacterIterator iterator, IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env) throws IOException, FontFormatException
iterator - The text with all propertiesenv - EnvironmentIOException - when a font can not be loaded or a paint can't be applied.FontFormatException - when the font file can not be loadedFontMetrics getFontMetrics(Font font, IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env) throws IOException, FontFormatException
font - the Fontenv - the EnvironmentIOExceptionFontFormatExceptionCopyright © 2022. All rights reserved.