Package org.xhtmlrenderer.pdf
Class ITextTextRenderer
- java.lang.Object
-
- org.xhtmlrenderer.pdf.ITextTextRenderer
-
- All Implemented Interfaces:
TextRenderer
public class ITextTextRenderer extends Object implements TextRenderer
-
-
Constructor Summary
Constructors Constructor Description ITextTextRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
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
getFontScale()
FSFontMetrics
getFSFontMetrics(FontContext context, FSFont font, String string)
Rectangle
getGlyphBounds(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector, int index, float x, float y)
float[]
getGlyphPositions(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector)
FSGlyphVector
getGlyphVector(OutputDevice outputDevice, FSFont font, String string)
int
getSmoothingLevel()
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)
-
-
-
Method Detail
-
setup
public void setup(FontContext context)
- Specified by:
setup
in interfaceTextRenderer
-
drawString
public void drawString(OutputDevice outputDevice, String string, float x, float y)
- 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
public FSFontMetrics getFSFontMetrics(FontContext context, FSFont font, String string)
- Specified by:
getFSFontMetrics
in interfaceTextRenderer
-
getWidth
public int getWidth(FontContext context, FSFont font, String string)
- 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 public void setSmoothingLevel(int level)
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
public FSGlyphVector getGlyphVector(OutputDevice outputDevice, FSFont font, String string)
- Specified by:
getGlyphVector
in interfaceTextRenderer
-
drawGlyphVector
public void drawGlyphVector(OutputDevice outputDevice, FSGlyphVector vector, float x, float y)
- Specified by:
drawGlyphVector
in interfaceTextRenderer
-
-