public class ITextTextRenderer extends 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,
String string,
float x,
float y) |
void |
drawString(OutputDevice outputDevice,
String string,
float x,
float y,
JustificationInfo info) |
float |
getFontScale() |
FSFontMetrics |
getFSFontMetrics(FontContext context,
FSFont font,
String string) |
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,
String string) |
int |
getSmoothingLevel() |
int |
getWidth(FontContext context,
FSFont font,
String string) |
void |
setFontScale(float scale) |
void |
setSmoothingLevel(int level) |
void |
setSmoothingThreshold(float fontsize) |
void |
setup(FontContext context) |
public void setup(FontContext context)
setup in interface TextRendererpublic void drawString(OutputDevice outputDevice, String string, float x, float y)
drawString in interface TextRendererpublic void drawString(OutputDevice outputDevice, String string, float x, float y, JustificationInfo info)
drawString in interface TextRendererpublic FSFontMetrics getFSFontMetrics(FontContext context, FSFont font, String string)
getFSFontMetrics in interface TextRendererpublic int getWidth(FontContext context, FSFont font, String string)
getWidth in interface TextRendererpublic void setFontScale(float scale)
setFontScale in interface TextRendererpublic float getFontScale()
getFontScale in interface TextRendererpublic void setSmoothingThreshold(float fontsize)
setSmoothingThreshold in interface TextRendererpublic int getSmoothingLevel()
getSmoothingLevel in interface TextRendererpublic void setSmoothingLevel(int level)
setSmoothingLevel in interface TextRendererpublic Rectangle getGlyphBounds(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector, int index, float x, float y)
getGlyphBounds in interface TextRendererpublic float[] getGlyphPositions(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector)
getGlyphPositions in interface TextRendererpublic FSGlyphVector getGlyphVector(OutputDevice outputDevice, FSFont font, String string)
getGlyphVector in interface TextRendererpublic void drawGlyphVector(OutputDevice outputDevice, FSGlyphVector vector, float x, float y)
drawGlyphVector in interface TextRendererCopyright © 2017. All rights reserved.