Package de.rototor.pdfbox.graphics2d
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 de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DFontTextDrawer
IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv
-
-
Constructor Summary
Constructors Constructor Description PdfBoxGraphics2DFontTextForcedDrawer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canDrawText(AttributedCharacterIterator iterator, IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env)
-
Methods inherited from class de.rototor.pdfbox.graphics2d.PdfBoxGraphics2DFontTextDrawerDefaultFonts
chooseMatchingCourier, chooseMatchingHelvetica, chooseMatchingTimes, mapDefaultFonts, mapFont
-
Methods inherited from class de.rototor.pdfbox.graphics2d.PdfBoxGraphics2DFontTextDrawer
close, drawText, getFontMetrics, hasDynamicFontMapping, registerFont, registerFont, registerFont, registerFont, registerFont
-
-
-
-
Method Detail
-
canDrawText
public boolean canDrawText(AttributedCharacterIterator iterator, IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env)
- Specified by:
canDrawText
in interfaceIPdfBoxGraphics2DFontTextDrawer
- Overrides:
canDrawText
in 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
-
-