iText 8.0.5 API
iText.Kernel.Font.PdfType1Font Class Reference
Inheritance diagram for iText.Kernel.Font.PdfType1Font:
iText.Kernel.Font.PdfSimpleFont< Type1Font >

Public Member Functions

override bool  IsSubset ()
 
override void  SetSubset (bool subset)
 
override void  Flush ()
 
override Glyph  GetGlyph (int unicode)
 
override bool  ContainsGlyph (int unicode)
 
- Public Member Functions inherited from iText.Kernel.Font.PdfSimpleFont< Type1Font >
override bool  IsBuiltWith (String fontProgram, String encoding)
  Checks whether the PdfFont was built with corresponding fontProgram and encoding or CMAP. More...
 
override GlyphLine  CreateGlyphLine (String content)
 
override int  AppendGlyphs (String text, int from, int to, IList< Glyph > glyphs)
  Append all supported glyphs and return number of processed chars. More...
 
override int  AppendAnyGlyph (String text, int from, IList< Glyph > glyphs)
  Append any single glyph, even notdef. More...
 
virtual FontEncoding  GetFontEncoding ()
  Get the font encoding. More...
 
virtual CMapToUnicode  GetToUnicode ()
  Get the mapping of character codes to unicode values based on /ToUnicode entry of font dictionary. More...
 
override byte[]  ConvertToBytes (String text)
  Converts the text into bytes to be placed in the document. More...
 
override byte[]  ConvertToBytes (GlyphLine glyphLine)
 
override byte[]  ConvertToBytes (Glyph glyph)
 
override void  WriteText (GlyphLine text, int from, int to, PdfOutputStream stream)
 
override void  WriteText (String text, PdfOutputStream stream)
 
override String  Decode (PdfString content)
 
override GlyphLine  DecodeIntoGlyphLine (PdfString content)
 
override bool  AppendDecodedCodesToGlyphsList (IList< Glyph > list, PdfString characterCodes)
 
override float  GetContentWidth (PdfString content)
 
virtual bool  IsForceWidthsOutput ()
  Gets the state of the property. More...
 
virtual void  SetForceWidthsOutput (bool forceWidthsOutput)
  Set to true to force the generation of the widths array. More...
 

Package Functions

override bool  IsBuiltInFont ()
  Indicates that the font is built in, i.e. it is one of the 14 Standard fonts More...
 
override 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. More...
 
- Package Functions inherited from iText.Kernel.Font.PdfSimpleFont< Type1Font >
  PdfSimpleFont (PdfDictionary fontDictionary)
 
virtual void  FlushFontData (String fontName, PdfName subtype)
 
override PdfDictionary  GetFontDescriptor (String fontName)
  Generates the font descriptor for this font or null if it is one of the 14 built in fonts. More...
 
virtual PdfArray  BuildWidthsArray (int firstChar, int lastChar)
 
abstract void  AddFontStream (PdfDictionary fontDescriptor)
 
virtual void  SetFontProgram (T fontProgram)
 

Additional Inherited Members

- Package Attributes inherited from iText.Kernel.Font.PdfSimpleFont< Type1Font >
FontEncoding  fontEncoding
 
bool  forceWidthsOutput
  Forces the output of the width array. More...
 
byte[]  usedGlyphs
  The array used with single byte encodings. More...
 
CMapToUnicode  toUnicode
  Currently only exists for the fonts that are parsed from the document. More...
 

Member Function Documentation

◆ AddFontStream()

override void iText.Kernel.Font.PdfType1Font.AddFontStream ( PdfDictionary  fontDescriptor )
inlinepackage

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.

◆ IsBuiltInFont()

override bool iText.Kernel.Font.PdfType1Font.IsBuiltInFont ( )
inlinepackagevirtual

Indicates that the font is built in, i.e. it is one of the 14 Standard fonts

Reimplemented from iText.Kernel.Font.PdfSimpleFont< Type1Font >.