HiraokaHyperTools.iTextSharp-LGPL  0.2.5
iTextSharp.text.pdf.DocumentFont Class Reference
Inheritance diagram for iTextSharp.text.pdf.DocumentFont:
iTextSharp.text.pdf.BaseFont

Public Member Functions

override float GetFontDescriptor (int key, float fontSize)
 
override int GetKerning (int char1, int char2)
 
override bool HasKernPairs ()
 
override PdfStream GetFullFontStream ()
 
override int GetWidth (int char1)
 
override int GetWidth (String text)
 
override bool CharExists (int c)
 
override bool SetKerning (int char1, int char2, int kern)
 
override int[] GetCharBBox (int c)
 
- Public Member Functions inherited from iTextSharp.text.pdf.BaseFont
virtual int GetWidth (string text)
 
int GetDescent (String text)
 
int GetAscent (String text)
 
float GetDescentPoint (String text, float fontSize)
 
float GetAscentPoint (String text, float fontSize)
 
float GetWidthPointKerned (String text, float fontSize)
 
float GetWidthPoint (string text, float fontSize)
 
float GetWidthPoint (int char1, float fontSize)
 
bool IsEmbedded ()
 
bool IsFontSpecific ()
 
virtual int GetUnicodeEquivalent (int c)
 
virtual int GetCidCode (int c)
 
virtual bool SetCharAdvance (int c, int advance)
 
void CorrectArabicAdvance ()
 
void AddSubsetRange (int[] range)
 

Protected Member Functions

override int[] GetRawCharBBox (int c, String name)
 
- Protected Member Functions inherited from iTextSharp.text.pdf.BaseFont
 BaseFont ()
 
void CreateEncoding ()
 

Properties

override string[][] FamilyFontName [get]
 
override string[][] FullFontName [get]
 
override string[][] AllNameEntries [get]
 
override string PostscriptFontName [get, set]
 
- Properties inherited from iTextSharp.text.pdf.BaseFont
string Encoding [get]
 
int FontType [get, set]
 
abstract string PostscriptFontName [get, set]
 
abstract string[][] FullFontName [get]
 
abstract string[][] AllNameEntries [get]
 
abstract string[][] FamilyFontName [get]
 
virtual string[] CodePagesSupported [get]
 
int[] Widths [get]
 
string[] Differences [get]
 
char[] UnicodeDifferences [get]
 
bool ForceWidthsOutput [get, set]
 
bool DirectTextToByte [get, set]
 
bool Subset [get, set]
 
int CompressionLevel [get, set]
 

Additional Inherited Members

- Static Public Member Functions inherited from iTextSharp.text.pdf.BaseFont
static BaseFont CreateFont ()
 
static BaseFont CreateFont (String name, String encoding, bool embedded)
 
static BaseFont CreateFont (String name, String encoding, bool embedded, bool forceRead)
 
static BaseFont CreateFont (String name, String encoding, bool embedded, bool cached, byte[] ttfAfm, byte[] pfb)
 
static BaseFont CreateFont (String name, String encoding, bool embedded, bool cached, byte[] ttfAfm, byte[] pfb, bool noThrow)
 
static BaseFont CreateFont (String name, String encoding, bool embedded, bool cached, byte[] ttfAfm, byte[] pfb, bool noThrow, bool forceRead)
 
static BaseFont CreateFont (PRIndirectReference fontRef)
 
static string[][] GetFullFontName (string name, string encoding, byte[] ttfAfm)
 
static Object[] GetAllFontNames (String name, String encoding, byte[] ttfAfm)
 
static String[][] GetAllNameEntries (String name, String encoding, byte[] ttfAfm)
 
static string[] EnumerateTTCNames (string ttcFile)
 
static string[] EnumerateTTCNames (byte[] ttcArray)
 
static void AddToResourceSearch (object obj)
 
static Stream GetResourceStream (string key)
 
static ArrayList GetDocumentFonts (PdfReader reader)
 
static ArrayList GetDocumentFonts (PdfReader reader, int page)
 
- Static Public Attributes inherited from iTextSharp.text.pdf.BaseFont
const string COURIER = "Courier"
 
const string COURIER_BOLD = "Courier-Bold"
 
const string COURIER_OBLIQUE = "Courier-Oblique"
 
const string COURIER_BOLDOBLIQUE = "Courier-BoldOblique"
 
const string HELVETICA = "Helvetica"
 
const string HELVETICA_BOLD = "Helvetica-Bold"
 
const string HELVETICA_OBLIQUE = "Helvetica-Oblique"
 
const string HELVETICA_BOLDOBLIQUE = "Helvetica-BoldOblique"
 
const string SYMBOL = "Symbol"
 
const string TIMES_ROMAN = "Times-Roman"
 
const string TIMES_BOLD = "Times-Bold"
 
const string TIMES_ITALIC = "Times-Italic"
 
const string TIMES_BOLDITALIC = "Times-BoldItalic"
 
const string ZAPFDINGBATS = "ZapfDingbats"
 
const int ASCENT = 1
 
const int CAPHEIGHT = 2
 
const int DESCENT = 3
 
const int ITALICANGLE = 4
 
const int BBOXLLX = 5
 
const int BBOXLLY = 6
 
const int BBOXURX = 7
 
const int BBOXURY = 8
 
const int AWT_ASCENT = 9
 
const int AWT_DESCENT = 10
 
const int AWT_LEADING = 11
 
const int AWT_MAXADVANCE = 12
 
const int UNDERLINE_POSITION = 13
 
const int UNDERLINE_THICKNESS = 14
 
const int STRIKETHROUGH_POSITION = 15
 
const int STRIKETHROUGH_THICKNESS = 16
 
const int SUBSCRIPT_SIZE = 17
 
const int SUBSCRIPT_OFFSET = 18
 
const int SUPERSCRIPT_SIZE = 19
 
const int SUPERSCRIPT_OFFSET = 20
 
const int FONT_TYPE_T1 = 0
 
const int FONT_TYPE_TT = 1
 
const int FONT_TYPE_CJK = 2
 
const int FONT_TYPE_TTUNI = 3
 
const int FONT_TYPE_DOCUMENT = 4
 
const int FONT_TYPE_T3 = 5
 
const string IDENTITY_H = "Identity-H"
 
const string IDENTITY_V = "Identity-V"
 
const string CP1250 = "Cp1250"
 
const string CP1252 = "Cp1252"
 
const string CP1257 = "Cp1257"
 
const string WINANSI = "Cp1252"
 
const string MACROMAN = "MacRoman"
 
static readonly int[] CHAR_RANGE_LATIN = {0, 0x17f, 0x2000, 0x206f, 0x20a0, 0x20cf, 0xfb00, 0xfb06}
 
static readonly int[] CHAR_RANGE_ARABIC = {0, 0x7f, 0x0600, 0x067f, 0x20a0, 0x20cf, 0xfb50, 0xfbff, 0xfe70, 0xfeff}
 
static readonly int[] CHAR_RANGE_HEBREW = {0, 0x7f, 0x0590, 0x05ff, 0x20a0, 0x20cf, 0xfb1d, 0xfb4f}
 
static readonly int[] CHAR_RANGE_CYRILLIC = {0, 0x7f, 0x0400, 0x052f, 0x2000, 0x206f, 0x20a0, 0x20cf}
 
const bool EMBEDDED = true
 
const bool NOT_EMBEDDED = false
 
const bool CACHED = true
 
const bool NOT_CACHED = false
 
const string RESOURCE_PATH = "iTextSharp.text.pdf.fonts."
 
const char CID_NEWLINE = '\u7fff'
 
const string notdef = ".notdef"
 
- Static Protected Member Functions inherited from iTextSharp.text.pdf.BaseFont
static string GetBaseName (string name)
 
static string NormalizeEncoding (string enc)
 
- Protected Attributes inherited from iTextSharp.text.pdf.BaseFont
ArrayList subsetRanges
 
int[] widths = new int[256]
 
string[] differences = new string[256]
 
char[] unicodeDifferences = new char[256]
 
int[][] charBBoxes = new int[256][]
 
string encoding
 
bool embedded
 
int compressionLevel = PdfStream.DEFAULT_COMPRESSION
 
bool fontSpecific = true
 
bool forceWidthsOutput = false
 
bool directTextToByte = false
 
bool subset = true
 
bool fastWinansi = false
 
IntHashtable specialMap
 
- Static Protected Attributes inherited from iTextSharp.text.pdf.BaseFont
static Hashtable fontCache = new Hashtable()
 
static Hashtable BuiltinFonts14 = new Hashtable()
 

Member Function Documentation

◆ CharExists()

override bool iTextSharp.text.pdf.DocumentFont.CharExists ( int  c)
virtual

Checks if a character exists in this font.

Parameters
cthe character to check
Returns
true if the character has a glyph, false otherwise

Reimplemented from iTextSharp.text.pdf.BaseFont.

◆ GetCharBBox()

override int [] iTextSharp.text.pdf.DocumentFont.GetCharBBox ( int  c)
virtual

Gets the smallest box enclosing the character contours. It will return null if the font has not the information or the character has no contours, as in the case of the space, for example. Characters with no contours may also return [0,0,0,0].

Parameters
cthe character to get the contour bounding box from
Returns
an array of four floats with the bounding box in the format [llx,lly,urx,ury] or null

Reimplemented from iTextSharp.text.pdf.BaseFont.

◆ GetFontDescriptor()

override float iTextSharp.text.pdf.DocumentFont.GetFontDescriptor ( int  key,
float  fontSize 
)
virtual

Gets the font parameter identified by key. Valid values for key are ASCENT, CAPHEIGHT, DESCENT, ITALICANGLE, BBOXLLX, BBOXLLY, BBOXURX and BBOXURY.

Parameters
keythe parameter to be extracted
fontSizethe font size in points
Returns
the parameter in points

Implements iTextSharp.text.pdf.BaseFont.

◆ GetFullFontStream()

override PdfStream iTextSharp.text.pdf.DocumentFont.GetFullFontStream ( )
virtual

Always returns null.

Returns
null
Since
2.1.3

Implements iTextSharp.text.pdf.BaseFont.

◆ GetKerning()

override int iTextSharp.text.pdf.DocumentFont.GetKerning ( int  char1,
int  char2 
)
virtual

Gets the kerning between two Unicode chars.

Parameters
char1the first char
char2the second char
Returns
the kerning to be applied

Implements iTextSharp.text.pdf.BaseFont.

◆ GetRawCharBBox()

override int [] iTextSharp.text.pdf.DocumentFont.GetRawCharBBox ( int  c,
String  name 
)
protectedvirtual

◆ GetWidth() [1/2]

override int iTextSharp.text.pdf.DocumentFont.GetWidth ( int  char1)
virtual

Gets the width of a char in normalized 1000 units.

Parameters
char1the unicode char to get the width of
Returns
the width in normalized 1000 units

Reimplemented from iTextSharp.text.pdf.BaseFont.

◆ GetWidth() [2/2]

override int iTextSharp.text.pdf.DocumentFont.GetWidth ( String  text)

◆ HasKernPairs()

override bool iTextSharp.text.pdf.DocumentFont.HasKernPairs ( )
virtual

Checks if the font has any kerning pairs.

Returns
true if the font has any kerning pairs

Implements iTextSharp.text.pdf.BaseFont.

◆ SetKerning()

override bool iTextSharp.text.pdf.DocumentFont.SetKerning ( int  char1,
int  char2,
int  kern 
)
virtual

Sets the kerning between two Unicode chars.

Parameters
char1the first char
char2the second char
kernthe kerning to apply in normalized 1000 units
Returns
true if the kerning was applied, false otherwise

Implements iTextSharp.text.pdf.BaseFont.

Property Documentation

◆ AllNameEntries

override string [][] iTextSharp.text.pdf.DocumentFont.AllNameEntries
get

Gets all the entries of the names-table. If it is a True Type font each array element will have {Name ID, Platform ID, Platform Encoding ID, Language ID, font name}. The interpretation of this values can be found in the Open Type specification, chapter 2, in the 'name' table.
For the other fonts the array has a single element with {"4", "", "", "", font name}.

Returns
the full name of the font

◆ FamilyFontName

override string [][] iTextSharp.text.pdf.DocumentFont.FamilyFontName
get

Gets the family name of the font. If it is a True Type font each array element will have {Platform ID, Platform Encoding ID, Language ID, font name}. The interpretation of this values can be found in the Open Type specification, chapter 2, in the 'name' table.
For the other fonts the array has a single element with {"", "", "", font name}.

Returns
the family name of the font

◆ FullFontName

override string [][] iTextSharp.text.pdf.DocumentFont.FullFontName
get

Gets the full name of the font. If it is a True Type font each array element will have {Platform ID, Platform Encoding ID, Language ID, font name}. The interpretation of this values can be found in the Open Type specification, chapter 2, in the 'name' table.
For the other fonts the array has a single element with {"", "", "", font name}.

Returns
the full name of the font

◆ PostscriptFontName

override string iTextSharp.text.pdf.DocumentFont.PostscriptFontName
getset

Gets the postscript font name.

Returns
the postscript font name

The documentation for this class was generated from the following file: