public class PdfBoxTextRenderer extends Object implements TextRenderer
| Constructor and Description |
|---|
PdfBoxTextRenderer() |
public void setup(FontContext context, BidiReorderer reorderer)
public 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 static List<PdfBoxOutputDevice.FontRun> divideIntoFontRuns(FSFont font, String str, BidiReorderer reorderer)
public 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 TextRendererpublic void setup(FontContext context)
setup in interface TextRendererCopyright © 2018. All rights reserved.