Package de.rototor.pdfbox.graphics2d
Interface IPdfBoxGraphics2DFontTextDrawer
-
- All Known Implementing Classes:
PdfBoxGraphics2DFontTextDrawer,PdfBoxGraphics2DFontTextDrawerDefaultFonts,PdfBoxGraphics2DFontTextForcedDrawer
public interface IPdfBoxGraphics2DFontTextDrawerDraw text using Fonts
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnvEnviroment for font based drawing of text
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanDrawText(AttributedCharacterIterator iterator, IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env)voiddrawText(AttributedCharacterIterator iterator, IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env)
-
-
-
Method Detail
-
canDrawText
boolean canDrawText(AttributedCharacterIterator iterator, IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env) throws IOException, FontFormatException
- Parameters:
iterator- Has the text and all its propertiesenv- Environment- Returns:
- true when the given text can be fully drawn using fonts. return false to have the text drawn as vector shapes
- Throws:
IOException- when a font can not be loaded or a paint can't be applied.FontFormatException
-
drawText
void drawText(AttributedCharacterIterator iterator, IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env) throws IOException, FontFormatException
- Parameters:
iterator- The text with all propertiesenv- Environment- Throws:
IOExceptionFontFormatException
-
-