Package org.xhtmlrenderer.extend
Interface TextRenderer
-
- All Known Implementing Classes:
Java2DTextRenderer
public interface TextRenderer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voiddrawGlyphVector(OutputDevice outputDevice, FSGlyphVector vector, float x, float y)voiddrawString(OutputDevice outputDevice, String string, float x, float y)voiddrawString(OutputDevice outputDevice, String string, float x, float y, JustificationInfo info)floatgetFontScale()FSFontMetricsgetFSFontMetrics(FontContext context, FSFont font, String string)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, String string)intgetSmoothingLevel()intgetWidth(FontContext context, FSFont font, String string)voidsetFontScale(float scale)voidsetSmoothingLevel(int level)Deprecated.no-op, will be removed in a future release.voidsetSmoothingThreshold(float fontsize)Set the smoothing threshold.voidsetup(FontContext context)
-
-
-
Method Detail
-
setup
void setup(FontContext context)
-
drawString
void drawString(OutputDevice outputDevice, String string, float x, float y)
-
drawString
void drawString(OutputDevice outputDevice, String string, float x, float y, JustificationInfo info)
-
drawGlyphVector
void drawGlyphVector(OutputDevice outputDevice, FSGlyphVector vector, float x, float y)
-
getGlyphVector
FSGlyphVector getGlyphVector(OutputDevice outputDevice, FSFont font, String string)
-
getGlyphPositions
float[] getGlyphPositions(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector)
-
getGlyphBounds
Rectangle getGlyphBounds(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector, int index, float x, float y)
-
getFSFontMetrics
FSFontMetrics getFSFontMetrics(FontContext context, FSFont font, String string)
-
getWidth
int getWidth(FontContext context, FSFont font, String string)
-
setFontScale
void setFontScale(float scale)
-
getFontScale
float getFontScale()
-
setSmoothingThreshold
void setSmoothingThreshold(float fontsize)
Set the smoothing threshold. This is a font size above which all text will be anti-aliased. Text below this size will not be anti-aliased. Set to -1 for no antialiasing. Set to 0 for all antialiasing. Else, set to the threshold font size. does not take font scaling into account.
-
getSmoothingLevel
int getSmoothingLevel()
-
setSmoothingLevel
@Deprecated void setSmoothingLevel(int level)
Deprecated.no-op, will be removed in a future release. Antialiasing is now controlled via the smoothing threshold.- Parameters:
level- no-op
-
-