Package org.xhtmlrenderer.pdf
Class ITextTextRenderer
java.lang.Object
org.xhtmlrenderer.pdf.ITextTextRenderer
- All Implemented Interfaces:
TextRenderer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
drawGlyphVector
(OutputDevice outputDevice, FSGlyphVector vector, float x, float y) void
drawString
(OutputDevice outputDevice, String string, float x, float y) void
drawString
(OutputDevice outputDevice, String string, float x, float y, JustificationInfo info) float
getFSFontMetrics
(FontContext context, FSFont font, String string) getGlyphBounds
(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector, int index, float x, float y) float[]
getGlyphPositions
(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector) getGlyphVector
(OutputDevice outputDevice, FSFont font, String string) int
int
getWidth
(FontContext context, FSFont font, String string) void
setFontScale
(float scale) void
setSmoothingLevel
(int level) Deprecated.void
setSmoothingThreshold
(float fontsize) void
setup
(FontContext context)
-
Constructor Details
-
ITextTextRenderer
public ITextTextRenderer()
-
-
Method Details
-
setup
- Specified by:
setup
in interfaceTextRenderer
-
drawString
- Specified by:
drawString
in interfaceTextRenderer
-
drawString
public void drawString(OutputDevice outputDevice, String string, float x, float y, JustificationInfo info) - Specified by:
drawString
in interfaceTextRenderer
-
getFSFontMetrics
- Specified by:
getFSFontMetrics
in interfaceTextRenderer
-
getWidth
- Specified by:
getWidth
in interfaceTextRenderer
-
setFontScale
public void setFontScale(float scale) - Specified by:
setFontScale
in interfaceTextRenderer
-
getFontScale
public float getFontScale()- Specified by:
getFontScale
in interfaceTextRenderer
-
setSmoothingThreshold
public void setSmoothingThreshold(float fontsize) - Specified by:
setSmoothingThreshold
in interfaceTextRenderer
-
getSmoothingLevel
public int getSmoothingLevel()- Specified by:
getSmoothingLevel
in interfaceTextRenderer
-
setSmoothingLevel
Deprecated.- Specified by:
setSmoothingLevel
in interfaceTextRenderer
-
getGlyphBounds
public Rectangle getGlyphBounds(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector, int index, float x, float y) - Specified by:
getGlyphBounds
in interfaceTextRenderer
-
getGlyphPositions
public float[] getGlyphPositions(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector) - Specified by:
getGlyphPositions
in interfaceTextRenderer
-
getGlyphVector
- Specified by:
getGlyphVector
in interfaceTextRenderer
-
drawGlyphVector
- Specified by:
drawGlyphVector
in interfaceTextRenderer
-