iText 8.0.5 API
|
Public Member Functions |
|
virtual int | CountOfGlyphs () |
virtual FontNames | GetFontNames () |
virtual FontMetrics | GetFontMetrics () |
virtual FontIdentification | GetFontIdentification () |
virtual String | GetRegistry () |
abstract int | GetPdfFontFlags () |
virtual bool | IsFontSpecific () |
virtual int | GetWidth (int unicode) |
Get glyph's width. More... |
|
virtual int | GetAvgWidth () |
virtual int[] | GetCharBBox (int unicode) |
Get glyph's bbox. More... |
|
virtual Glyph | GetGlyph (int unicode) |
virtual Glyph | GetGlyphByCode (int charCode) |
virtual bool | HasKernPairs () |
virtual int | GetKerning (int first, int second) |
Gets the kerning between two glyphs. More... |
|
abstract int | GetKerning (Glyph first, Glyph second) |
Gets the kerning between two glyphs. More... |
|
virtual bool | IsBuiltWith (String fontName) |
Checks whether the FontProgram was built with corresponding fontName. More... |
|
override String | ToString () |
Static Public Attributes |
|
const int | HORIZONTAL_SCALING_FACTOR = 100 |
const int | DEFAULT_WIDTH = 1000 |
const int | UNITS_NORMALIZATION = 1000 |
Package Functions |
|
virtual void | SetRegistry (String registry) |
virtual void | SetTypoAscender (int ascender) |
Sets typo ascender. More... |
|
virtual void | SetTypoDescender (int descender) |
Sets typo descender. More... |
|
virtual void | SetCapHeight (int capHeight) |
Sets the capital letters height. More... |
|
virtual void | SetXHeight (int xHeight) |
virtual void | SetItalicAngle (int italicAngle) |
Sets the PostScript italic angle. More... |
|
virtual void | SetStemV (int stemV) |
virtual void | SetStemH (int stemH) |
virtual void | SetFontWeight (int fontWeight) |
Sets font weight. More... |
|
virtual void | SetFontStretch (String fontWidth) |
Sets font width in css notation (font-stretch property) More... |
|
virtual void | SetFixedPitch (bool isFixedPitch) |
virtual void | SetBold (bool isBold) |
virtual void | SetBbox (int[] bbox) |
virtual void | SetFontFamily (String fontFamily) |
Sets a preferred font family name. More... |
|
virtual void | SetFontName (String fontName) |
Sets the PostScript name of the font. More... |
|
virtual void | FixSpaceIssue () |
Package Attributes |
|
IDictionary< int, Glyph > | codeToGlyph = new Dictionary |
IDictionary< int, Glyph > | unicodeToGlyph = new Dictionary |
bool | isFontSpecific |
FontNames | fontNames |
FontMetrics | fontMetrics = new FontMetrics() |
FontIdentification | fontIdentification = new FontIdentification() |
int | avgWidth |
String | encodingScheme = FontEncoding.FONT_SPECIFIC |
The font's encoding name. More... |
|
String | registry |
|
inlinevirtual |
Get glyph's bbox.
unicode | a unicode symbol or FontSpecif code. |
Gets the kerning between two glyphs.
first | the first glyph |
second | the second glyph |
Implemented in iText.Kernel.Font.Type3Font, iText.IO.Font.CidFont, iText.IO.Font.Type1Font, and iText.IO.Font.TrueTypeFont.
|
inlinevirtual |
Gets the kerning between two glyphs.
first | the first unicode value |
second | the second unicode value |
|
inlinevirtual |
Get glyph's width.
unicode | a unicode symbol or FontSpecif code. |
|
inlinevirtual |
Checks whether the FontProgram was built with corresponding fontName.
Checks whether the FontProgram was built with corresponding fontName. Default value is false unless overridden.
fontName | a font name or path to a font program |
Reimplemented in iText.IO.Font.TrueTypeFont, iText.IO.Font.Type1Font, iText.Kernel.Font.DocTrueTypeFont, and iText.IO.Font.CidFont.
|
inlinepackagevirtual |
Sets the capital letters height.
Sets the capital letters height. See also FontMetrics.SetCapHeight(int).
capHeight | cap height in 1000-units |
Reimplemented in iText.Kernel.Font.Type3Font.
|
inlinepackagevirtual |
Sets a preferred font family name.
fontFamily | a preferred font family name. |
Reimplemented in iText.Kernel.Font.Type3Font.
|
inlinepackagevirtual |
Sets the PostScript name of the font.
Sets the PostScript name of the font.
If full name is null, it will be set as well.
fontName | the PostScript name of the font, shall not be null or empty. |
Reimplemented in iText.Kernel.Font.Type3Font.
|
inlinepackagevirtual |
Sets font width in css notation (font-stretch property)
fontWidth |
iText.IO.Font.Constants.FontStretches.
Reimplemented in iText.Kernel.Font.Type3Font.
|
inlinepackagevirtual |
Sets font weight.
fontWeight | integer form 100 to 900. See iText.IO.Font.Constants.FontWeights. |
Reimplemented in iText.Kernel.Font.Type3Font.
|
inlinepackagevirtual |
Sets the PostScript italic angle.
Sets the PostScript italic angle.
Italic angle in counter-clockwise degrees from the vertical. Zero for upright text, negative for text that leans to the right (forward).
italicAngle | in counter-clockwise degrees from the vertical |
Reimplemented in iText.Kernel.Font.Type3Font.
|
inlinepackagevirtual |
Sets typo ascender.
Sets typo ascender. See also FontMetrics.SetTypoAscender(int).
ascender | typo ascender value in 1000-units |
Reimplemented in iText.Kernel.Font.Type3Font.
|
inlinepackagevirtual |
Sets typo descender.
Sets typo descender. See also FontMetrics.SetTypoDescender(int).
descender | typo descender value in 1000-units |
Reimplemented in iText.Kernel.Font.Type3Font.
|
package |
The font's encoding name.
The font's encoding name. This encoding is 'StandardEncoding' or 'AdobeStandardEncoding' for a font that can be totally encoded according to the characters names. For all other names the font is treated as symbolic.