Package com.openhtmltopdf.extend
Interface TextRenderer
-
public interface TextRenderer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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)
Deprecated.no-op, will be removed in a future release.void
setSmoothingThreshold(float fontsize)
Set the smoothing threashold.void
setup(FontContext context)
-
-
-
Method Detail
-
setup
void setup(FontContext context)
-
drawString
void drawString(OutputDevice outputDevice, String string, float x, float y)
-
drawString
void drawString(OutputDevice outputDevice, String string, float x, float y, JustificationInfo info)
-
drawGlyphVector
void drawGlyphVector(OutputDevice outputDevice, FSGlyphVector vector, float x, float y)
-
getGlyphVector
FSGlyphVector getGlyphVector(OutputDevice outputDevice, FSFont font, String string)
-
getGlyphPositions
float[] getGlyphPositions(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector)
-
getGlyphBounds
Rectangle getGlyphBounds(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector, int index, float x, float y)
-
getFSFontMetrics
FSFontMetrics getFSFontMetrics(FontContext context, FSFont font, String string)
-
getWidth
int getWidth(FontContext context, FSFont font, String string)
-
setFontScale
void setFontScale(float scale)
-
getFontScale
float getFontScale()
-
setSmoothingThreshold
void setSmoothingThreshold(float fontsize)
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.
-
getSmoothingLevel
int getSmoothingLevel()
-
setSmoothingLevel
void setSmoothingLevel(int level)
Deprecated.no-op, will be removed in a future release. Anti-aliasing is now controlled via the smoothing threshhold.- Parameters:
level
- no-op
-
-