- All Known Implementing Classes:
ITextTextRenderer,Java2DTextRenderer
public interface TextRenderer
-
Method Summary
Modifier and TypeMethodDescriptionvoiddrawGlyphVector(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) floatgetFSFontMetrics(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) intgetWidth(FontContext context, FSFont font, String string) voidsetFontScale(float scale) voidsetSmoothingThreshold(float fontsize) Set the smoothing threshold.voidsetup(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.
-