Package org.xhtmlrenderer.extend
Interface TextRenderer
- All Known Implementing Classes:
ITextTextRenderer
,Java2DTextRenderer
,SWTTextRenderer
public interface TextRenderer
-
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
getWidth
(FontContext context, FSFont font, String string) void
setFontScale
(float scale) void
setSmoothingThreshold
(float fontsize) Set the smoothing threshold.void
setup
(FontContext context)
-
Method Details
-
setup
-
drawString
-
drawString
-
drawGlyphVector
-
getGlyphVector
-
getGlyphPositions
-
getGlyphBounds
Rectangle getGlyphBounds(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector, int index, float x, float y) -
getFSFontMetrics
-
getWidth
-
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.
-