Class PDFFontMapper

  • All Implemented Interfaces:
    de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DFontTextDrawer, Closeable, AutoCloseable

    public class PDFFontMapper
    extends de.rototor.pdfbox.graphics2d.PdfBoxGraphics2DFontTextDrawer
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DFontTextDrawer

        de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.pdfbox.pdmodel.font.PDFont mapFont​(Font font, de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env)  
      • Methods inherited from class de.rototor.pdfbox.graphics2d.PdfBoxGraphics2DFontTextDrawer

        canDrawText, close, drawText, getFontMetrics, hasDynamicFontMapping, registerFont, registerFont, registerFont, registerFont, registerFont
    • Constructor Detail

      • PDFFontMapper

        public PDFFontMapper​(String fontDir,
                             String fontTtf)
    • Method Detail

      • mapFont

        protected org.apache.pdfbox.pdmodel.font.PDFont mapFont​(Font font,
                                                                de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv env)
                                                         throws IOException,
                                                                FontFormatException
        Overrides:
        mapFont in class de.rototor.pdfbox.graphics2d.PdfBoxGraphics2DFontTextDrawer
        Throws:
        IOException
        FontFormatException