public interface TextRenderer
Modifier and Type | Method and Description |
---|---|
void |
drawGlyphVector(OutputDevice outputDevice,
FSGlyphVector vector,
float x,
float y) |
void |
drawString(OutputDevice outputDevice,
java.lang.String string,
float x,
float y) |
void |
drawString(OutputDevice outputDevice,
java.lang.String string,
float x,
float y,
JustificationInfo info) |
float |
getFontScale() |
FSFontMetrics |
getFSFontMetrics(FontContext context,
FSFont font,
java.lang.String string) |
java.awt.Rectangle |
getGlyphBounds(OutputDevice outputDevice,
FSFont font,
FSGlyphVector fsGlyphVector,
int index,
float x,
float y) |
float[] |
getGlyphPositions(OutputDevice outputDevice,
FSFont font,
FSGlyphVector fsGlyphVector) |
FSGlyphVector |
getGlyphVector(OutputDevice outputDevice,
FSFont font,
java.lang.String string) |
int |
getSmoothingLevel() |
int |
getWidth(FontContext context,
FSFont font,
java.lang.String string) |
void |
setFontScale(float scale) |
void |
setSmoothingLevel(int level)
Deprecated.
no-op, will be removed in a future release. Anti-aliasing is now controlled via the smoothing
threshhold.
|
void |
setSmoothingThreshold(float fontsize)
Set the smoothing threashold.
|
void |
setup(FontContext context) |
void setup(FontContext context)
void drawString(OutputDevice outputDevice, java.lang.String string, float x, float y)
void drawString(OutputDevice outputDevice, java.lang.String string, float x, float y, JustificationInfo info)
void drawGlyphVector(OutputDevice outputDevice, FSGlyphVector vector, float x, float y)
FSGlyphVector getGlyphVector(OutputDevice outputDevice, FSFont font, java.lang.String string)
float[] getGlyphPositions(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector)
java.awt.Rectangle getGlyphBounds(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector, int index, float x, float y)
FSFontMetrics getFSFontMetrics(FontContext context, FSFont font, java.lang.String string)
int getWidth(FontContext context, FSFont font, java.lang.String string)
void setFontScale(float scale)
float getFontScale()
void setSmoothingThreshold(float fontsize)
int getSmoothingLevel()
void setSmoothingLevel(int level)
level
- no-op