Class PdfType1Font


public class PdfType1Font extends PdfSimpleFont<Type1Font>
  • Method Details

    • isSubset

      public boolean isSubset()
      Description copied from class: PdfFont
      Indicates if all the glyphs and widths for that particular encoding should be included in the document.
      Overrides:
      isSubset in class PdfFont
      Returns:
      false to include all the glyphs and widths.
    • setSubset

      public void setSubset (boolean subset)
      Description copied from class: PdfFont
      Indicates if all the glyphs and widths for that particular encoding should be included in the document. When set to true only the glyphs used will be included in the font. When set to false the full font will be included and all subset ranges will be removed.
      Overrides:
      setSubset in class PdfFont
      Parameters:
      subset - new value of property subset
      See Also:
    • flush

      public void flush()
      Description copied from class: PdfFont
      To manually flush a PdfObject behind this wrapper, you have to ensure that this object is added to the document, i.e. it has an indirect reference. Basically this means that before flushing you need to explicitly call PdfObjectWrapper.makeIndirect(PdfDocument). For example: wrapperInstance.makeIndirect(document).flush(); Note that not every wrapper require this, only those that have such warning in documentation.
      Overrides:
      flush in class PdfFont
    • getGlyph

      public Glyph getGlyph (int unicode)
      Description copied from class: PdfFont
      Get glyph by unicode
      Specified by:
      getGlyph in class PdfFont
      Parameters:
      unicode - a unicode code point
      Returns:
      Glyph if it exists or .NOTDEF if supported, otherwise null.
    • containsGlyph

      public boolean containsGlyph (int unicode)
      Description copied from class: PdfFont
      Check whether font contains glyph with specified unicode.
      Overrides:
      containsGlyph in class PdfFont
      Parameters:
      unicode - a unicode code point
      Returns:
      true if font contains glyph, represented with the unicode code point, otherwise false.
    • isBuiltInFont

      protected boolean isBuiltInFont()
      Indicates that the font is built in, i.e. it is one of the 14 Standard fonts
      Overrides:
      isBuiltInFont in class PdfSimpleFont<Type1Font>
      Returns:
      true in case the font is a Standard font and false otherwise
    • addFontStream

      protected void addFontStream (PdfDictionary fontDescriptor)
      If the embedded flag is false or if the font is one of the 14 built in types, it returns null, otherwise the font is read and output in a PdfStream object.
      Specified by:
      addFontStream in class PdfSimpleFont<Type1Font>