Package org.xhtmlrenderer.pdf
Class ITextTextRenderer
- java.lang.Object
-
- org.xhtmlrenderer.pdf.ITextTextRenderer
-
- All Implemented Interfaces:
TextRenderer
public class ITextTextRenderer extends java.lang.Object implements TextRenderer
-
-
Constructor Summary
Constructors Constructor Description ITextTextRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddrawGlyphVector(OutputDevice outputDevice, FSGlyphVector vector, float x, float y)voiddrawString(OutputDevice outputDevice, java.lang.String string, float x, float y)voiddrawString(OutputDevice outputDevice, java.lang.String string, float x, float y, JustificationInfo info)floatgetFontScale()FSFontMetricsgetFSFontMetrics(FontContext context, FSFont font, java.lang.String string)java.awt.RectanglegetGlyphBounds(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector, int index, float x, float y)float[]getGlyphPositions(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector)FSGlyphVectorgetGlyphVector(OutputDevice outputDevice, FSFont font, java.lang.String string)intgetSmoothingLevel()intgetWidth(FontContext context, FSFont font, java.lang.String string)voidsetFontScale(float scale)voidsetSmoothingLevel(int level)voidsetSmoothingThreshold(float fontsize)Set the smoothing threashold.voidsetup(FontContext context)
-
-
-
Method Detail
-
setup
public void setup(FontContext context)
- Specified by:
setupin interfaceTextRenderer
-
drawString
public void drawString(OutputDevice outputDevice, java.lang.String string, float x, float y)
- Specified by:
drawStringin interfaceTextRenderer
-
drawString
public void drawString(OutputDevice outputDevice, java.lang.String string, float x, float y, JustificationInfo info)
- Specified by:
drawStringin interfaceTextRenderer
-
getFSFontMetrics
public FSFontMetrics getFSFontMetrics(FontContext context, FSFont font, java.lang.String string)
- Specified by:
getFSFontMetricsin interfaceTextRenderer
-
getWidth
public int getWidth(FontContext context, FSFont font, java.lang.String string)
- Specified by:
getWidthin interfaceTextRenderer
-
setFontScale
public void setFontScale(float scale)
- Specified by:
setFontScalein interfaceTextRenderer
-
getFontScale
public float getFontScale()
- Specified by:
getFontScalein interfaceTextRenderer
-
setSmoothingThreshold
public void setSmoothingThreshold(float fontsize)
Description copied from interface:TextRendererSet 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:
setSmoothingThresholdin interfaceTextRenderer
-
getSmoothingLevel
public int getSmoothingLevel()
- Specified by:
getSmoothingLevelin interfaceTextRenderer
-
setSmoothingLevel
public void setSmoothingLevel(int level)
- Specified by:
setSmoothingLevelin interfaceTextRenderer- Parameters:
level- no-op
-
getGlyphBounds
public java.awt.Rectangle getGlyphBounds(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector, int index, float x, float y)
- Specified by:
getGlyphBoundsin interfaceTextRenderer
-
getGlyphPositions
public float[] getGlyphPositions(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector)
- Specified by:
getGlyphPositionsin interfaceTextRenderer
-
getGlyphVector
public FSGlyphVector getGlyphVector(OutputDevice outputDevice, FSFont font, java.lang.String string)
- Specified by:
getGlyphVectorin interfaceTextRenderer
-
drawGlyphVector
public void drawGlyphVector(OutputDevice outputDevice, FSGlyphVector vector, float x, float y)
- Specified by:
drawGlyphVectorin interfaceTextRenderer
-
-