Module flying.saucer
Package org.xhtmlrenderer.extend
Interface TextRenderer<OutputDeviceType extends OutputDevice<?,FontType>,FontContextType extends FontContext,FontType extends FSFont>
- All Known Implementing Classes:
Java2DTextRenderer
public interface TextRenderer<OutputDeviceType extends OutputDevice<?,FontType>,FontContextType extends FontContext,FontType extends FSFont>
-
Method Summary
Modifier and TypeMethodDescriptionvoiddrawGlyphVector(OutputDeviceType outputDevice, FSGlyphVector vector, float x, float y) voiddrawString(OutputDeviceType outputDevice, String string, float x, float y) voiddrawString(OutputDeviceType outputDevice, String string, float x, float y, JustificationInfo info) floatgetFSFontMetrics(FontContextType context, FontType font, String string) getGlyphBounds(OutputDeviceType outputDevice, FontType font, FSGlyphVector fsGlyphVector, int index, float x, float y) float[]getGlyphPositions(OutputDeviceType outputDevice, FontType font, FSGlyphVector fsGlyphVector) getGlyphVector(OutputDeviceType outputDevice, FontType font, String string) intgetWidth(FontContextType context, FontType font, String string) voidsetFontScale(float scale) voidsetSmoothingThreshold(float fontsize) Set the smoothing threshold.voidsetup(FontContextType context)
-
Method Details
-
setup
-
drawString
-
drawString
void drawString(OutputDeviceType outputDevice, String string, float x, float y, JustificationInfo info) -
drawGlyphVector
-
getGlyphVector
-
getGlyphPositions
float[] getGlyphPositions(OutputDeviceType outputDevice, FontType font, FSGlyphVector fsGlyphVector) -
getGlyphBounds
Rectangle getGlyphBounds(OutputDeviceType outputDevice, FontType 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.
-