Class FontMapping<T extends FontBoxFont>

  • Direct Known Subclasses:
    CIDFontMapping

    public class FontMapping<T extends FontBoxFont>
    extends java.lang.Object
    A font mapping from a PDF font to a FontBox font.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T font  
      private boolean isFallback  
    • Constructor Summary

      Constructors 
      Constructor Description
      FontMapping​(T font, boolean isFallback)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getFont()
      Returns the mapped, FontBox font.
      boolean isFallback()
      Returns true if the mapped font is a fallback, i.e.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • isFallback

        private final boolean isFallback
    • Constructor Detail

      • FontMapping

        public FontMapping​(T font,
                           boolean isFallback)
    • Method Detail

      • getFont

        public T getFont()
        Returns the mapped, FontBox font. This is never null.
      • isFallback

        public boolean isFallback()
        Returns true if the mapped font is a fallback, i.e. a substitute based on basic font style, such as bold/italic, rather than font name.