Class ITextTextRenderer

java.lang.Object
org.xhtmlrenderer.pdf.ITextTextRenderer
All Implemented Interfaces:
org.xhtmlrenderer.extend.TextRenderer

public class ITextTextRenderer extends Object implements org.xhtmlrenderer.extend.TextRenderer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    drawGlyphVector(org.xhtmlrenderer.extend.OutputDevice outputDevice, org.xhtmlrenderer.extend.FSGlyphVector vector, float x, float y)
     
    void
    drawString(org.xhtmlrenderer.extend.OutputDevice outputDevice, String string, float x, float y)
     
    void
    drawString(org.xhtmlrenderer.extend.OutputDevice outputDevice, String string, float x, float y, org.xhtmlrenderer.render.JustificationInfo info)
     
    float
     
    org.xhtmlrenderer.render.FSFontMetrics
    getFSFontMetrics(org.xhtmlrenderer.extend.FontContext context, org.xhtmlrenderer.render.FSFont font, String string)
     
    getGlyphBounds(org.xhtmlrenderer.extend.OutputDevice outputDevice, org.xhtmlrenderer.render.FSFont font, org.xhtmlrenderer.extend.FSGlyphVector fsGlyphVector, int index, float x, float y)
     
    float[]
    getGlyphPositions(org.xhtmlrenderer.extend.OutputDevice outputDevice, org.xhtmlrenderer.render.FSFont font, org.xhtmlrenderer.extend.FSGlyphVector fsGlyphVector)
     
    org.xhtmlrenderer.extend.FSGlyphVector
    getGlyphVector(org.xhtmlrenderer.extend.OutputDevice outputDevice, org.xhtmlrenderer.render.FSFont font, String string)
     
    int
    getWidth(org.xhtmlrenderer.extend.FontContext context, org.xhtmlrenderer.render.FSFont font, String string)
     
    void
    setFontScale(float scale)
     
    void
    setSmoothingThreshold(float fontsize)
     
    void
    setup(org.xhtmlrenderer.extend.FontContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ITextTextRenderer

      public ITextTextRenderer()
  • Method Details

    • setup

      public void setup(org.xhtmlrenderer.extend.FontContext context)
      Specified by:
      setup in interface org.xhtmlrenderer.extend.TextRenderer
    • drawString

      public void drawString(org.xhtmlrenderer.extend.OutputDevice outputDevice, String string, float x, float y)
      Specified by:
      drawString in interface org.xhtmlrenderer.extend.TextRenderer
    • drawString

      public void drawString(org.xhtmlrenderer.extend.OutputDevice outputDevice, String string, float x, float y, org.xhtmlrenderer.render.JustificationInfo info)
      Specified by:
      drawString in interface org.xhtmlrenderer.extend.TextRenderer
    • getFSFontMetrics

      public org.xhtmlrenderer.render.FSFontMetrics getFSFontMetrics(org.xhtmlrenderer.extend.FontContext context, org.xhtmlrenderer.render.FSFont font, String string)
      Specified by:
      getFSFontMetrics in interface org.xhtmlrenderer.extend.TextRenderer
    • getWidth

      public int getWidth(org.xhtmlrenderer.extend.FontContext context, org.xhtmlrenderer.render.FSFont font, String string)
      Specified by:
      getWidth in interface org.xhtmlrenderer.extend.TextRenderer
    • setFontScale

      public void setFontScale(float scale)
      Specified by:
      setFontScale in interface org.xhtmlrenderer.extend.TextRenderer
    • getFontScale

      public float getFontScale()
      Specified by:
      getFontScale in interface org.xhtmlrenderer.extend.TextRenderer
    • setSmoothingThreshold

      public void setSmoothingThreshold(float fontsize)
      Specified by:
      setSmoothingThreshold in interface org.xhtmlrenderer.extend.TextRenderer
    • getGlyphBounds

      public Rectangle getGlyphBounds(org.xhtmlrenderer.extend.OutputDevice outputDevice, org.xhtmlrenderer.render.FSFont font, org.xhtmlrenderer.extend.FSGlyphVector fsGlyphVector, int index, float x, float y)
      Specified by:
      getGlyphBounds in interface org.xhtmlrenderer.extend.TextRenderer
    • getGlyphPositions

      public float[] getGlyphPositions(org.xhtmlrenderer.extend.OutputDevice outputDevice, org.xhtmlrenderer.render.FSFont font, org.xhtmlrenderer.extend.FSGlyphVector fsGlyphVector)
      Specified by:
      getGlyphPositions in interface org.xhtmlrenderer.extend.TextRenderer
    • getGlyphVector

      public org.xhtmlrenderer.extend.FSGlyphVector getGlyphVector(org.xhtmlrenderer.extend.OutputDevice outputDevice, org.xhtmlrenderer.render.FSFont font, String string)
      Specified by:
      getGlyphVector in interface org.xhtmlrenderer.extend.TextRenderer
    • drawGlyphVector

      public void drawGlyphVector(org.xhtmlrenderer.extend.OutputDevice outputDevice, org.xhtmlrenderer.extend.FSGlyphVector vector, float x, float y)
      Specified by:
      drawGlyphVector in interface org.xhtmlrenderer.extend.TextRenderer