public class ITextTextRenderer extends java.lang.Object implements TextRenderer
Constructor and Description |
---|
ITextTextRenderer() |
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) |
void |
setSmoothingThreshold(float fontsize)
Set the smoothing threashold.
|
void |
setup(FontContext context) |
public void setup(FontContext context)
setup
in interface TextRenderer
public void drawString(OutputDevice outputDevice, java.lang.String string, float x, float y)
drawString
in interface TextRenderer
public void drawString(OutputDevice outputDevice, java.lang.String string, float x, float y, JustificationInfo info)
drawString
in interface TextRenderer
public FSFontMetrics getFSFontMetrics(FontContext context, FSFont font, java.lang.String string)
getFSFontMetrics
in interface TextRenderer
public int getWidth(FontContext context, FSFont font, java.lang.String string)
getWidth
in interface TextRenderer
public void setFontScale(float scale)
setFontScale
in interface TextRenderer
public float getFontScale()
getFontScale
in interface TextRenderer
public void setSmoothingThreshold(float fontsize)
TextRenderer
setSmoothingThreshold
in interface TextRenderer
public int getSmoothingLevel()
getSmoothingLevel
in interface TextRenderer
public void setSmoothingLevel(int level)
setSmoothingLevel
in interface TextRenderer
level
- no-oppublic java.awt.Rectangle getGlyphBounds(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector, int index, float x, float y)
getGlyphBounds
in interface TextRenderer
public float[] getGlyphPositions(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector)
getGlyphPositions
in interface TextRenderer
public FSGlyphVector getGlyphVector(OutputDevice outputDevice, FSFont font, java.lang.String string)
getGlyphVector
in interface TextRenderer
public void drawGlyphVector(OutputDevice outputDevice, FSGlyphVector vector, float x, float y)
drawGlyphVector
in interface TextRenderer