Package de.rototor.pdfbox.graphics2d
Schnittstelle IPdfBoxGraphics2DFontTextDrawer
- Alle bekannten Implementierungsklassen:
PdfBoxGraphics2DFontTextDrawer,PdfBoxGraphics2DFontTextDrawerDefaultFonts,PdfBoxGraphics2DFontTextForcedDrawer
public interface IPdfBoxGraphics2DFontTextDrawer
Draw text using Fonts
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic interfaceEnviroment for font based drawing of text -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleancanDrawText(AttributedCharacterIterator iterator, IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env) voiddrawText(AttributedCharacterIterator iterator, IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env)
-
Methodendetails
-
canDrawText
boolean canDrawText(AttributedCharacterIterator iterator, IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env) throws IOException, FontFormatException - Parameter:
iterator- Has the text and all its propertiesenv- Environment- Gibt zurück:
- true when the given text can be fully drawn using fonts. return false to have the text drawn as vector shapes
- Löst aus:
IOException- when a font can not be loaded or a paint can't be applied.FontFormatException- when the font file can not be loaded
-
drawText
void drawText(AttributedCharacterIterator iterator, IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env) throws IOException, FontFormatException - Parameter:
iterator- The text with all propertiesenv- Environment- Löst aus:
IOException- when a font can not be loaded or a paint can't be applied.FontFormatException- when the font file can not be loaded
-
getFontMetrics
FontMetrics getFontMetrics(Font font, IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env) throws IOException, FontFormatException - Parameter:
font- the Fontenv- the Environment- Gibt zurück:
- the resulting font metrics
- Löst aus:
IOExceptionFontFormatException
-