Class PdfFonts

java.lang.Object
com.stimulsoft.report.export.tools.pdf.PdfFontInfo
com.stimulsoft.report.export.tools.pdf.PdfFonts

public class PdfFonts extends PdfFontInfo
Copyright Stimulsoft
  • Field Details

  • Constructor Details

    • PdfFonts

      public PdfFonts()
  • Method Details

    • makeGlyphBackMap

      public int[] makeGlyphBackMap(StiFont font)
      Make glyph back map
      Parameters:
      font -
      Returns:
      Back map
    • isFontStimulsoft

      public static boolean isFontStimulsoft(String name)
    • isFontSymbolic

      public static boolean isFontSymbolic(String name)
    • getFontMetrics

      public void getFontMetrics(StiFont font, PdfFontInfo currentFontInfo, int[] glyphMap)
      get font metrics
      Parameters:
      font -
      currentFontInfo -
      glyphMap -
    • getCurrentFont

      public int getCurrentFont()
      Get current font number
      Returns:
      Current font number in table of fonts
    • setCurrentFont

      public void setCurrentFont(int value)
      Set current font number in table of fonts
      Parameters:
      value -
    • initFontsData

      public void initFontsData(StiReport report)
      Init fonts data
    • getFontNumber

      public int getFontNumber(StiFont incomingFont)
      Returns number of font in table of fonts.
      Parameters:
      incomingFont -
      Returns:
    • storeUnicodeSymbolsInMap

      public void storeUnicodeSymbolsInMap(StringBuilder sb)
      Store unicode symbols in map
      Parameters:
      sb - StringBuilder
    • storeGlyphsInMap

      public void storeGlyphsInMap(StringBuilder sb)
      Store glyphs in map
      Parameters:
      sb - StringBuilder
    • clear

      public void clear()
      Clear pdfFonts
    • getFontDataBuf

      Get font file byte array fron buffer (if exist)
      Parameters:
      font - StiFont
      Returns:
      Font file byte array
      Throws:
      IllegalArgumentException
      SecurityException
      IOException
      IllegalAccessException
      NoSuchFieldException
      ClassNotFoundException
      NoSuchMethodException
      InvocationTargetException
    • clearFontsCache

      public static void clearFontsCache()
      Clear fonts cache
    • isForceUseUnicode

      public boolean isForceUseUnicode()
    • setForceUseUnicode

      public void setForceUseUnicode(boolean forceUseUnicode)
    • isStandardPdfFonts

      public boolean isStandardPdfFonts()
      Returns:
      the standardPdfFonts
    • setStandardPdfFonts

      public void setStandardPdfFonts(boolean standardPdfFonts)
      Parameters:
      standardPdfFonts - the standardPdfFonts to set
    • getMaxSymbols

      public int getMaxSymbols()
      Returns:
      the maxSymbols
    • setMaxSymbols

      public void setMaxSymbols(int maxSymbols)
      Parameters:
      maxSymbols - the maxSymbols to set
    • getFontList

      public ArrayList<PdfFonts.pfontInfo> getFontList()
      Returns:
      the fontList
    • setFontList

      public void setFontList(ArrayList<PdfFonts.pfontInfo> fontList)
      Parameters:
      fontList - the fontList to set