Class PdfBoxGraphics2DFontTextForcedDrawer
java.lang.Object
de.rototor.pdfbox.graphics2d.PdfBoxGraphics2DFontTextDrawer
de.rototor.pdfbox.graphics2d.PdfBoxGraphics2DFontTextDrawerDefaultFonts
de.rototor.pdfbox.graphics2d.PdfBoxGraphics2DFontTextForcedDrawer
- All Implemented Interfaces:
IPdfBoxGraphics2DFontTextDrawer, Closeable, AutoCloseable
public class PdfBoxGraphics2DFontTextForcedDrawer
extends PdfBoxGraphics2DFontTextDrawerDefaultFonts
Always draw using text, even if we know that we can not map the text correct
-
Nested Class Summary
Nested classes/interfaces inherited from interface IPdfBoxGraphics2DFontTextDrawer
IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanDrawText(AttributedCharacterIterator iterator, IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env) Methods inherited from class PdfBoxGraphics2DFontTextDrawerDefaultFonts
chooseMatchingCourier, chooseMatchingHelvetica, chooseMatchingTimes, mapDefaultFonts, mapFontMethods inherited from class PdfBoxGraphics2DFontTextDrawer
close, drawText, getFontMetrics, hasDynamicFontMapping, registerFont, registerFont, registerFont, registerFont, registerFont
-
Constructor Details
-
PdfBoxGraphics2DFontTextForcedDrawer
public PdfBoxGraphics2DFontTextForcedDrawer()
-
-
Method Details
-
canDrawText
public boolean canDrawText(AttributedCharacterIterator iterator, IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env) - Specified by:
canDrawTextin interfaceIPdfBoxGraphics2DFontTextDrawer- Overrides:
canDrawTextin classPdfBoxGraphics2DFontTextDrawer- 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
-