Package org.xhtmlrenderer.pdf
Class ITextTextRenderer
java.lang.Object
org.xhtmlrenderer.pdf.ITextTextRenderer
- All Implemented Interfaces:
TextRenderer
-
Constructor Summary
Constructors -
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) void
setSmoothingThreshold
(float fontsize) Set the smoothing threashold.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) Description copied from interface:TextRenderer
Set the smoothing threashold. This is a font size above which all text will be anti-aliased. Text below this size will not be antialiased. Set to -1 for no antialiasing. Set to 0 for all antialising. Else, set to the threshold font size. does not take font scaling into account.- Specified by:
setSmoothingThreshold
in interfaceTextRenderer
-
getSmoothingLevel
public int getSmoothingLevel()- Specified by:
getSmoothingLevel
in interfaceTextRenderer
-
setSmoothingLevel
public void setSmoothingLevel(int level) - Specified by:
setSmoothingLevel
in interfaceTextRenderer
- Parameters:
level
- no-op
-
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
-