java.lang.Object
org.xhtmlrenderer.pdf.ITextTextRenderer
- All Implemented Interfaces:
org.xhtmlrenderer.extend.TextRenderer<ITextOutputDevice,ITextFontContext, ITextFSFont>
public class ITextTextRenderer
extends Object
implements org.xhtmlrenderer.extend.TextRenderer<ITextOutputDevice,ITextFontContext,ITextFSFont>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawGlyphVector(ITextOutputDevice outputDevice, org.xhtmlrenderer.extend.FSGlyphVector vector, float x, float y) voiddrawString(ITextOutputDevice outputDevice, String string, float x, float y) voiddrawString(ITextOutputDevice outputDevice, String string, float x, float y, org.xhtmlrenderer.render.JustificationInfo info) floatorg.xhtmlrenderer.render.FSFontMetricsgetFSFontMetrics(ITextFontContext context, ITextFSFont font, String string) getGlyphBounds(ITextOutputDevice outputDevice, ITextFSFont font, org.xhtmlrenderer.extend.FSGlyphVector fsGlyphVector, int index, float x, float y) float[]getGlyphPositions(ITextOutputDevice outputDevice, ITextFSFont font, org.xhtmlrenderer.extend.FSGlyphVector fsGlyphVector) org.xhtmlrenderer.extend.FSGlyphVectorgetGlyphVector(ITextOutputDevice outputDevice, ITextFSFont font, String string) intgetWidth(ITextFontContext context, ITextFSFont font, String string) voidsetFontScale(float scale) voidsetSmoothingThreshold(float fontsize) voidsetup(ITextFontContext context)
-
Constructor Details
-
ITextTextRenderer
public ITextTextRenderer()
-
-
Method Details
-
setup
- Specified by:
setupin interfaceorg.xhtmlrenderer.extend.TextRenderer<ITextOutputDevice,ITextFontContext, ITextFSFont>
-
drawString
- Specified by:
drawStringin interfaceorg.xhtmlrenderer.extend.TextRenderer<ITextOutputDevice,ITextFontContext, ITextFSFont>
-
drawString
public void drawString(ITextOutputDevice outputDevice, String string, float x, float y, org.xhtmlrenderer.render.JustificationInfo info) - Specified by:
drawStringin interfaceorg.xhtmlrenderer.extend.TextRenderer<ITextOutputDevice,ITextFontContext, ITextFSFont>
-
getFSFontMetrics
public org.xhtmlrenderer.render.FSFontMetrics getFSFontMetrics(ITextFontContext context, ITextFSFont font, String string) - Specified by:
getFSFontMetricsin interfaceorg.xhtmlrenderer.extend.TextRenderer<ITextOutputDevice,ITextFontContext, ITextFSFont>
-
getWidth
- Specified by:
getWidthin interfaceorg.xhtmlrenderer.extend.TextRenderer<ITextOutputDevice,ITextFontContext, ITextFSFont>
-
setFontScale
public void setFontScale(float scale) - Specified by:
setFontScalein interfaceorg.xhtmlrenderer.extend.TextRenderer<ITextOutputDevice,ITextFontContext, ITextFSFont>
-
getFontScale
public float getFontScale()- Specified by:
getFontScalein interfaceorg.xhtmlrenderer.extend.TextRenderer<ITextOutputDevice,ITextFontContext, ITextFSFont>
-
setSmoothingThreshold
public void setSmoothingThreshold(float fontsize) - Specified by:
setSmoothingThresholdin interfaceorg.xhtmlrenderer.extend.TextRenderer<ITextOutputDevice,ITextFontContext, ITextFSFont>
-
getGlyphBounds
public Rectangle getGlyphBounds(ITextOutputDevice outputDevice, ITextFSFont font, org.xhtmlrenderer.extend.FSGlyphVector fsGlyphVector, int index, float x, float y) - Specified by:
getGlyphBoundsin interfaceorg.xhtmlrenderer.extend.TextRenderer<ITextOutputDevice,ITextFontContext, ITextFSFont>
-
getGlyphPositions
public float[] getGlyphPositions(ITextOutputDevice outputDevice, ITextFSFont font, org.xhtmlrenderer.extend.FSGlyphVector fsGlyphVector) - Specified by:
getGlyphPositionsin interfaceorg.xhtmlrenderer.extend.TextRenderer<ITextOutputDevice,ITextFontContext, ITextFSFont>
-
getGlyphVector
public org.xhtmlrenderer.extend.FSGlyphVector getGlyphVector(ITextOutputDevice outputDevice, ITextFSFont font, String string) - Specified by:
getGlyphVectorin interfaceorg.xhtmlrenderer.extend.TextRenderer<ITextOutputDevice,ITextFontContext, ITextFSFont>
-
drawGlyphVector
public void drawGlyphVector(ITextOutputDevice outputDevice, org.xhtmlrenderer.extend.FSGlyphVector vector, float x, float y) - Specified by:
drawGlyphVectorin interfaceorg.xhtmlrenderer.extend.TextRenderer<ITextOutputDevice,ITextFontContext, ITextFSFont>
-