public class ITextTextRenderer extends Object implements TextRenderer
| 构造器和说明 |
|---|
ITextTextRenderer() |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
Set the smoothing threashold.
|
void |
setup(FontContext context) |
public void setup(FontContext context)
setup 在接口中 TextRendererpublic void drawString(OutputDevice outputDevice, String string, float x, float y)
drawString 在接口中 TextRendererpublic void drawString(OutputDevice outputDevice, String string, float x, float y, JustificationInfo info)
drawString 在接口中 TextRendererpublic FSFontMetrics getFSFontMetrics(FontContext context, FSFont font, String string)
getFSFontMetrics 在接口中 TextRendererpublic int getWidth(FontContext context, FSFont font, String string)
getWidth 在接口中 TextRendererpublic void setFontScale(float scale)
setFontScale 在接口中 TextRendererpublic float getFontScale()
getFontScale 在接口中 TextRendererpublic void setSmoothingThreshold(float fontsize)
TextRenderersetSmoothingThreshold 在接口中 TextRendererpublic int getSmoothingLevel()
getSmoothingLevel 在接口中 TextRendererpublic void setSmoothingLevel(int level)
setSmoothingLevel 在接口中 TextRendererlevel - no-oppublic Rectangle getGlyphBounds(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector, int index, float x, float y)
getGlyphBounds 在接口中 TextRendererpublic float[] getGlyphPositions(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector)
getGlyphPositions 在接口中 TextRendererpublic FSGlyphVector getGlyphVector(OutputDevice outputDevice, FSFont font, String string)
getGlyphVector 在接口中 TextRendererpublic void drawGlyphVector(OutputDevice outputDevice, FSGlyphVector vector, float x, float y)
drawGlyphVector 在接口中 TextRendererCopyright © 2019. All Rights Reserved.