|
iText 9.8.0 API
|
Holds the typographic metrics parsed from a font program. More...
Public Member Functions |
|
| virtual int | GetUnitsPerEm () |
| Gets the units per em value declared by the source font. More... |
|
| virtual int | GetNumberOfGlyphs () |
| Gets the number of glyphs declared by the font. More... |
|
| virtual int[] | GetGlyphWidths () |
| Gets the glyph width array. More... |
|
| virtual int | GetTypoAscender () |
| Gets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to ascender. More... |
|
| virtual int | GetTypoDescender () |
| Gets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to descender. More... |
|
| virtual int | GetCapHeight () |
| Gets the capital letters height. More... |
|
| virtual int | GetXHeight () |
| Gets the height of lowercase flat characters above the baseline. More... |
|
| virtual float | GetItalicAngle () |
| Gets the PostScript italic angle. More... |
|
| virtual int[] | GetBbox () |
| Gets the font bounding box. More... |
|
| virtual void | SetBbox (int llx, int lly, int urx, int ury) |
| Replaces the normalized font bounding box. More... |
|
| virtual int | GetAscender () |
| Gets the horizontal ascender. More... |
|
| virtual int | GetDescender () |
| Gets the horizontal descender. More... |
|
| virtual int | GetLineGap () |
| Gets the line spacing. More... |
|
| virtual int | GetWinAscender () |
| Gets the Windows ascender metric. More... |
|
| virtual int | GetWinDescender () |
| Gets the Windows descender metric. More... |
|
| virtual int | GetAdvanceWidthMax () |
| Gets the largest horizontal advance width in the font. More... |
|
| virtual int | GetUnderlinePosition () |
| Gets the underline center position relative to the baseline. More... |
|
| virtual int | GetUnderlineThickness () |
| Gets the recommended underline thickness. More... |
|
| virtual int | GetStrikeoutPosition () |
| Gets the strikeout position relative to the baseline. More... |
|
| virtual int | GetStrikeoutSize () |
| Gets the strikeout thickness. More... |
|
| virtual int | GetSubscriptSize () |
| Gets the recommended vertical size for subscripts. More... |
|
| virtual int | GetSubscriptOffset () |
| Gets the subscript baseline offset. More... |
|
| virtual int | GetSuperscriptSize () |
| Gets the recommended vertical size for superscripts. More... |
|
| virtual int | GetSuperscriptOffset () |
| Gets the superscript baseline offset. More... |
|
| virtual int | GetStemV () |
| Gets the dominant vertical stem width. More... |
|
| virtual int | GetStemH () |
| Gets the dominant horizontal stem width. More... |
|
| virtual bool | IsFixedPitch () |
| Checks whether all glyphs use a common width. More... |
|
| virtual void | SetStemV (int stemV) |
| Sets the dominant vertical stem width. More... |
|
Package Functions |
|
| virtual void | SetUnitsPerEm (int unitsPerEm) |
| Sets source units per em. More... |
|
| virtual void | UpdateBbox (float llx, float lly, float urx, float ury) |
| Converts and stores a font bounding box in source units. More... |
|
| virtual void | SetNumberOfGlyphs (int numOfGlyphs) |
| Sets the glyph count declared by the font. More... |
|
| virtual void | SetGlyphWidths (int[] glyphWidths) |
| Stores the glyph width table. More... |
|
| virtual void | SetTypoAscender (int typoAscender) |
| Sets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to ascender. More... |
|
| virtual void | SetTypoDescender (int typoDescender) |
| Sets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to descender. More... |
|
| virtual void | SetCapHeight (int capHeight) |
| Sets the capital letters height. More... |
|
| virtual void | SetXHeight (int xHeight) |
| Sets the source font x-height. More... |
|
| virtual void | SetItalicAngle (float italicAngle) |
| Sets the PostScript italic angle without unit normalization. More... |
|
| virtual void | SetAscender (int ascender) |
| Sets the source horizontal ascender. More... |
|
| virtual void | SetDescender (int descender) |
| Sets the source horizontal descender. More... |
|
| virtual void | SetLineGap (int lineGap) |
| Sets the line space. More... |
|
| virtual void | SetWinAscender (int winAscender) |
| Sets the source Windows ascender metric. More... |
|
| virtual void | SetWinDescender (int winDescender) |
| Sets the source Windows descender metric. More... |
|
| virtual void | SetAdvanceWidthMax (int advanceWidthMax) |
| Sets the largest horizontal advance width declared by the source font. More... |
|
| virtual void | SetUnderlinePosition (int underlinePosition) |
| Sets the source underline position. More... |
|
| virtual void | SetUnderlineThickness (int underlineThickness) |
| Sets the underline thickness. More... |
|
| virtual void | SetStrikeoutPosition (int strikeoutPosition) |
| Sets the source strikeout position. More... |
|
| virtual void | SetStrikeoutSize (int strikeoutSize) |
| Sets the source strikeout thickness. More... |
|
| virtual void | SetSubscriptSize (int subscriptSize) |
| Sets the source subscript vertical size. More... |
|
| virtual void | SetSubscriptOffset (int subscriptOffset) |
| Sets the source subscript vertical offset. More... |
|
| virtual void | SetSuperscriptSize (int superscriptSize) |
| Sets the superscript vertical size. More... |
|
| virtual void | SetSuperscriptOffset (int superscriptOffset) |
| Sets the source superscript vertical offset. More... |
|
| virtual void | SetStemH (int stemH) |
| Sets the dominant horizontal stem width. More... |
|
| virtual void | SetIsFixedPitch (bool isFixedPitch) |
| Sets whether the font declares a common width for all glyphs. More... |
|
Package Attributes |
|
| float | normalizationCoef = 1f |
| Multiplier that converts values expressed in the source font's units per em to normalized 1000-unit glyph space. More... |
|
Holds the typographic metrics parsed from a font program.
Holds the typographic metrics parsed from a font program.
Unless stated otherwise, dimensional values are normalized to the PDF glyph space of 1000 units per em when they are assigned by the font readers.
|
inlinevirtual |
Gets the largest horizontal advance width in the font.
|
inlinevirtual |
Gets the horizontal ascender.
|
inlinevirtual |
Gets the font bounding box.
|
inlinevirtual |
Gets the capital letters height.
Gets the capital letters height.
This property defines the vertical coordinate of the top of flat capital letters, measured from the baseline.
|
inlinevirtual |
Gets the horizontal descender.
|
inlinevirtual |
Gets the glyph width array.
|
inlinevirtual |
Gets the PostScript italic angle.
|
inlinevirtual |
Gets the line spacing.
|
inlinevirtual |
Gets the number of glyphs declared by the font.
|
inlinevirtual |
Gets the dominant horizontal stem width.
StdHW value, or the reader's fallback, in glyph units
|
inlinevirtual |
Gets the dominant vertical stem width.
StdVW value, or the reader's fallback, in glyph units
|
inlinevirtual |
Gets the strikeout position relative to the baseline.
|
inlinevirtual |
Gets the strikeout thickness.
|
inlinevirtual |
Gets the subscript baseline offset.
|
inlinevirtual |
Gets the recommended vertical size for subscripts.
|
inlinevirtual |
Gets the superscript baseline offset.
|
inlinevirtual |
Gets the recommended vertical size for superscripts.
|
inlinevirtual |
Gets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to ascender.
Gets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to ascender.
Typo vertical metrics are the primary source for iText ascender/descender calculations.
|
inlinevirtual |
Gets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to descender.
Gets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to descender.
Typo vertical metrics are the primary source for iText ascender/descender calculations.
|
inlinevirtual |
Gets the underline center position relative to the baseline.
|
inlinevirtual |
Gets the recommended underline thickness.
|
inlinevirtual |
Gets the units per em value declared by the source font.
|
inlinevirtual |
Gets the Windows ascender metric.
usWinAscent in normalized glyph units
|
inlinevirtual |
Gets the Windows descender metric.
usWinDescent in normalized glyph units
|
inlinevirtual |
Gets the height of lowercase flat characters above the baseline.
|
inlinevirtual |
Checks whether all glyphs use a common width.
true when the font declares fixed pitch
|
inlinepackagevirtual |
Sets the largest horizontal advance width declared by the source font.
| advanceWidthMax |
hhea.advanceWidthMax in source units
|
inlinepackagevirtual |
Sets the source horizontal ascender.
| ascender |
hhea.Ascender in source units
|
inlinevirtual |
Replaces the normalized font bounding box.
| llx | lower-left x coordinate |
| lly | lower-left y coordinate |
| urx | upper-right x coordinate |
| ury | upper-right y coordinate |
|
inlinepackagevirtual |
Sets the capital letters height.
Sets the capital letters height.
This property defines the vertical coordinate of the top of flat capital letters, measured from the baseline.
| capHeight | cap height in 1000-units |
|
inlinepackagevirtual |
Sets the source horizontal descender.
| descender |
hhea.Descender in source units
|
inlinepackagevirtual |
Stores the glyph width table.
| glyphWidths | width array indexed by glyph ID |
|
inlinepackagevirtual |
Sets whether the font declares a common width for all glyphs.
| isFixedPitch |
true for fixed pitch fonts
|
inlinepackagevirtual |
Sets the PostScript italic angle without unit normalization.
| italicAngle | counterclockwise degrees from vertical |
|
inlinepackagevirtual |
Sets the line space.
| lineGap |
hhea.LineGap in source units
|
inlinepackagevirtual |
Sets the glyph count declared by the font.
| numOfGlyphs | number of glyphs |
|
inlinepackagevirtual |
Sets the dominant horizontal stem width.
| stemH | Type 1/CFF StdHW value in glyph units |
|
inlinevirtual |
Sets the dominant vertical stem width.
| stemV | Type 1/CFF StdVW value in glyph units |
|
inlinepackagevirtual |
Sets the source strikeout position.
| strikeoutPosition | OS/2 yStrikeoutPosition in source units |
|
inlinepackagevirtual |
Sets the source strikeout thickness.
| strikeoutSize | OS/2 yStrikeoutSize in source units |
|
inlinepackagevirtual |
Sets the source subscript vertical offset.
| subscriptOffset | OS/2 ySubscriptYOffset in source units |
|
inlinepackagevirtual |
Sets the source subscript vertical size.
| subscriptSize | OS/2 ySubscriptYSize in source units |
|
inlinepackagevirtual |
Sets the source superscript vertical offset.
| superscriptOffset | OS/2 ySuperscriptYOffset in source units |
|
inlinepackagevirtual |
Sets the superscript vertical size.
| superscriptSize | OS/2 ySuperscriptYSize ; stored without normalization |
|
inlinepackagevirtual |
Sets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to ascender.
Sets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to ascender.
Typo vertical metrics are the primary source for iText ascender/descender calculations.
| typoAscender | typo ascender value in normalized 1000-units |
|
inlinepackagevirtual |
Sets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to descender.
Sets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to descender.
Typo vertical metrics are the primary source for iText ascender/descender calculations.
| typoDescender | typo descender value in normalized 1000-units |
|
inlinepackagevirtual |
Sets the source underline position.
| underlinePosition |
post.underlinePosition in source units
|
inlinepackagevirtual |
Sets the underline thickness.
| underlineThickness |
post.underlineThickness ; stored without normalization
|
inlinepackagevirtual |
Sets source units per em.
Sets source units per em.
It recalculates the normalization multiplier used by subsequent setters.
| unitsPerEm | positive number of design units in an em |
|
inlinepackagevirtual |
Sets the source Windows ascender metric.
| winAscender | OS/2 usWinAscent in source units |
|
inlinepackagevirtual |
Sets the source Windows descender metric.
| winDescender | OS/2 usWinDescent in source units |
|
inlinepackagevirtual |
Sets the source font x-height.
| xHeight | OS/2 sxHeight in source units |
|
inlinepackagevirtual |
Converts and stores a font bounding box in source units.
| llx | lower-left x coordinate in source units |
| lly | lower-left y coordinate in source units |
| urx | upper-right x coordinate in source units |
| ury | upper-right y coordinate in source units |
|
package |
Multiplier that converts values expressed in the source font's units per em to normalized 1000-unit glyph space.
Multiplier that converts values expressed in the source font's units per em to normalized 1000-unit glyph space. Font readers update it after reading head.unitsPerEm.