org.xhtmlrenderer.pdf
Class ITextTextRenderer
java.lang.Object
org.xhtmlrenderer.pdf.ITextTextRenderer
- All Implemented Interfaces:
- TextRenderer
public class ITextTextRenderer
- extends java.lang.Object
- implements TextRenderer
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ITextTextRenderer
public ITextTextRenderer()
setup
public void setup(FontContext context)
- Specified by:
setup
in interface TextRenderer
drawString
public void drawString(OutputDevice outputDevice,
java.lang.String string,
float x,
float y)
- Specified by:
drawString
in interface TextRenderer
drawString
public void drawString(OutputDevice outputDevice,
java.lang.String string,
float x,
float y,
JustificationInfo info)
- Specified by:
drawString
in interface TextRenderer
getFSFontMetrics
public FSFontMetrics getFSFontMetrics(FontContext context,
FSFont font,
java.lang.String string)
- Specified by:
getFSFontMetrics
in interface TextRenderer
getWidth
public int getWidth(FontContext context,
FSFont font,
java.lang.String string)
- Specified by:
getWidth
in interface TextRenderer
setFontScale
public void setFontScale(float scale)
- Specified by:
setFontScale
in interface TextRenderer
getFontScale
public float getFontScale()
- Specified by:
getFontScale
in interface TextRenderer
setSmoothingThreshold
public void setSmoothingThreshold(float fontsize)
- Description copied from interface:
TextRenderer
- Set the smoothing threashold. This is a font size above which
all text will be anti-aliased. Text below this size will not be antialiased.
Set to -1 for no antialiasing.
Set to 0 for all antialising.
Else, set to the threshold font size. does not take font scaling
into account.
- Specified by:
setSmoothingThreshold
in interface TextRenderer
getSmoothingLevel
public int getSmoothingLevel()
- Specified by:
getSmoothingLevel
in interface TextRenderer
setSmoothingLevel
public void setSmoothingLevel(int level)
- Specified by:
setSmoothingLevel
in interface TextRenderer
- Parameters:
level
- no-op
getGlyphBounds
public java.awt.Rectangle getGlyphBounds(OutputDevice outputDevice,
FSFont font,
FSGlyphVector fsGlyphVector,
int index,
float x,
float y)
- Specified by:
getGlyphBounds
in interface TextRenderer
getGlyphPositions
public float[] getGlyphPositions(OutputDevice outputDevice,
FSFont font,
FSGlyphVector fsGlyphVector)
- Specified by:
getGlyphPositions
in interface TextRenderer
getGlyphVector
public FSGlyphVector getGlyphVector(OutputDevice outputDevice,
FSFont font,
java.lang.String string)
- Specified by:
getGlyphVector
in interface TextRenderer
drawGlyphVector
public void drawGlyphVector(OutputDevice outputDevice,
FSGlyphVector vector,
float x,
float y)
- Specified by:
drawGlyphVector
in interface TextRenderer
Flying Saucer Project Home