Package org.apache.fop.svg
Class PDFFlowTextPainter
java.lang.Object
org.apache.batik.bridge.BasicTextPainter
org.apache.batik.bridge.StrokingTextPainter
org.apache.fop.svg.NativeTextPainter
org.apache.fop.svg.PDFFlowTextPainter
- All Implemented Interfaces:
org.apache.batik.bridge.TextPainter
Text Painter for SVG 1.2 (flow) text.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.batik.bridge.StrokingTextPainter
org.apache.batik.bridge.StrokingTextPainter.TextChunk, org.apache.batik.bridge.StrokingTextPainter.TextRunNested classes/interfaces inherited from class org.apache.batik.bridge.BasicTextPainter
org.apache.batik.bridge.BasicTextPainter.BasicMark -
Field Summary
Fields inherited from class org.apache.fop.svg.NativeTextPainter
font, fontFamilyResolver, fontInfo, log, tpiFields inherited from class org.apache.batik.bridge.StrokingTextPainter
ADJUST_ALL, ADJUST_SPACING, ALT_GLYPH_HANDLER, ANCHOR_TYPE, BIDI_LEVEL, FLOW_PARAGRAPH, FLOW_REGIONS, GVT_FONT, GVT_FONTS, PAINT_INFO, singleton, TEXT_COMPOUND_ID, TEXTPATH, WRITING_MODE, WRITING_MODE_RTL, WRITING_MODE_TTB, XPOS, YPOSFields inherited from class org.apache.batik.bridge.BasicTextPainter
aaOffFontRenderContext, fontRenderContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidgetTextRuns(org.apache.batik.bridge.TextNode node, AttributedCharacterIterator aci) protected booleanisSupported(Graphics2D g2d) Indicates whether the givenGraphics2Dinstance if compatible with this text painter implementation.protected voidpositionGlyph(Point2D prevPos, Point2D glyphPos, boolean reposition) protected voidprotected voidprotected voidprotected voidsetInitialTransform(AffineTransform transform) protected voidwriteGlyph(char glyph, AffineTransform transform) protected voidwriteGlyphs(FOPGVTGlyphVector gv, GeneralPath debugShapes) Methods inherited from class org.apache.fop.svg.NativeTextPainter
collectCharacters, computeTextRuns, getFontFamilyResolver, getTextLayoutFactory, getTextRunBoundaryAttributes, logCharacter, logTextRun, paintTextRun, paintTextRuns, reorderTextRunsMethods inherited from class org.apache.batik.bridge.StrokingTextPainter
adjustChunkOffsets, computeTextRuns, createModifiedACIForFontMatching, getBounds2D, getDecorationOutline, getDecorationStrokeOutline, getHighlightShape, getInstance, getMark, getOutline, getSelected, getTextChunk, getTextChunkACIs, hitTest, paint, paintDecorations, printAttrs, selectFirst, selectLastMethods inherited from class org.apache.batik.bridge.BasicTextPainter
getGeometryBounds, selectAt, selectTo
-
Constructor Details
-
PDFFlowTextPainter
Main constructor- Parameters:
fontInfo- the font directory
-
-
Method Details
-
getTextRuns
- Overrides:
getTextRunsin classorg.apache.batik.bridge.StrokingTextPainter
-
isSupported
Indicates whether the givenGraphics2Dinstance if compatible with this text painter implementation.- Specified by:
isSupportedin classNativeTextPainter- Parameters:
g2d- the instance to check- Returns:
- true if the instance is compatible.
-
preparePainting
- Specified by:
preparePaintingin classNativeTextPainter
-
saveGraphicsState
protected void saveGraphicsState()- Specified by:
saveGraphicsStatein classNativeTextPainter
-
restoreGraphicsState
protected void restoreGraphicsState()- Specified by:
restoreGraphicsStatein classNativeTextPainter
-
setInitialTransform
- Specified by:
setInitialTransformin classNativeTextPainter
-
clip
- Specified by:
clipin classNativeTextPainter
-
writeGlyphs
- Overrides:
writeGlyphsin classNativeTextPainter- Throws:
IOException
-
beginTextObject
protected void beginTextObject()- Specified by:
beginTextObjectin classNativeTextPainter
-
endTextObject
protected void endTextObject()- Specified by:
endTextObjectin classNativeTextPainter
-
positionGlyph
- Specified by:
positionGlyphin classNativeTextPainter
-
writeGlyph
- Specified by:
writeGlyphin classNativeTextPainter
-