Class FontMetrics
public class FontMetrics
- Inheritance
-
FontMetrics
- Inherited Members
Constructors
FontMetrics()
public FontMetrics()
Fields
normalizationCoef
protected float normalizationCoef
Field Value
Methods
GetAdvanceWidthMax()
public virtual int GetAdvanceWidthMax()
Returns
GetAscender()
public virtual int GetAscender()
Returns
GetBbox()
public virtual int[] GetBbox()
Returns
- int[]
GetCapHeight()
Gets the capital letters height.
public virtual int GetCapHeight()
Returns
- int
cap height in 1000-units
Remarks
Gets the capital letters height.
This property defines the vertical coordinate of the top of flat capital letters, measured from the baseline.GetDescender()
public virtual int GetDescender()
Returns
GetGlyphWidths()
public virtual int[] GetGlyphWidths()
Returns
- int[]
GetItalicAngle()
public virtual float GetItalicAngle()
Returns
GetLineGap()
public virtual int GetLineGap()
Returns
GetNumberOfGlyphs()
public virtual int GetNumberOfGlyphs()
Returns
GetStemH()
public virtual int GetStemH()
Returns
GetStemV()
public virtual int GetStemV()
Returns
GetStrikeoutPosition()
public virtual int GetStrikeoutPosition()
Returns
GetStrikeoutSize()
public virtual int GetStrikeoutSize()
Returns
GetSubscriptOffset()
public virtual int GetSubscriptOffset()
Returns
GetSubscriptSize()
public virtual int GetSubscriptSize()
Returns
GetSuperscriptOffset()
public virtual int GetSuperscriptOffset()
Returns
GetSuperscriptSize()
public virtual int GetSuperscriptSize()
Returns
GetTypoAscender()
Gets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to ascender.
public virtual int GetTypoAscender()
Returns
- int
typo ascender value in normalized 1000-units
Remarks
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.GetTypoDescender()
Gets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to descender.
public virtual int GetTypoDescender()
Returns
- int
typo descender value in normalized 1000-units
Remarks
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.GetUnderlinePosition()
public virtual int GetUnderlinePosition()
Returns
GetUnderlineThickness()
public virtual int GetUnderlineThickness()
Returns
GetUnitsPerEm()
public virtual int GetUnitsPerEm()
Returns
GetWinAscender()
public virtual int GetWinAscender()
Returns
GetWinDescender()
public virtual int GetWinDescender()
Returns
GetXHeight()
public virtual int GetXHeight()
Returns
IsFixedPitch()
public virtual bool IsFixedPitch()
Returns
SetAdvanceWidthMax(int)
protected virtual void SetAdvanceWidthMax(int advanceWidthMax)
Parameters
advanceWidthMax
int
SetAscender(int)
protected virtual void SetAscender(int ascender)
Parameters
ascender
int
SetBbox(int, int, int, int)
public virtual void SetBbox(int llx, int lly, int urx, int ury)
Parameters
SetCapHeight(int)
Sets the capital letters height.
protected virtual void SetCapHeight(int capHeight)
Parameters
capHeight
intcap height in 1000-units
Remarks
Sets the capital letters height.
This property defines the vertical coordinate of the top of flat capital letters, measured from the baseline.SetDescender(int)
protected virtual void SetDescender(int descender)
Parameters
descender
int
SetGlyphWidths(int[])
protected virtual void SetGlyphWidths(int[] glyphWidths)
Parameters
glyphWidths
int[]
SetIsFixedPitch(bool)
protected virtual void SetIsFixedPitch(bool isFixedPitch)
Parameters
isFixedPitch
bool
SetItalicAngle(float)
protected virtual void SetItalicAngle(float italicAngle)
Parameters
italicAngle
float
SetLineGap(int)
protected virtual void SetLineGap(int lineGap)
Parameters
lineGap
int
SetNumberOfGlyphs(int)
protected virtual void SetNumberOfGlyphs(int numOfGlyphs)
Parameters
numOfGlyphs
int
SetStemH(int)
protected virtual void SetStemH(int stemH)
Parameters
stemH
int
SetStemV(int)
public virtual void SetStemV(int stemV)
Parameters
stemV
int
SetStrikeoutPosition(int)
protected virtual void SetStrikeoutPosition(int strikeoutPosition)
Parameters
strikeoutPosition
int
SetStrikeoutSize(int)
protected virtual void SetStrikeoutSize(int strikeoutSize)
Parameters
strikeoutSize
int
SetSubscriptOffset(int)
protected virtual void SetSubscriptOffset(int subscriptOffset)
Parameters
subscriptOffset
int
SetSubscriptSize(int)
protected virtual void SetSubscriptSize(int subscriptSize)
Parameters
subscriptSize
int
SetSuperscriptOffset(int)
protected virtual void SetSuperscriptOffset(int superscriptOffset)
Parameters
superscriptOffset
int
SetSuperscriptSize(int)
protected virtual void SetSuperscriptSize(int superscriptSize)
Parameters
superscriptSize
int
SetTypoAscender(int)
Sets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to ascender.
protected virtual void SetTypoAscender(int typoAscender)
Parameters
typoAscender
inttypo ascender value in normalized 1000-units
Remarks
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.SetTypoDescender(int)
Sets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to descender.
protected virtual void SetTypoDescender(int typoDescender)
Parameters
typoDescender
inttypo descender value in normalized 1000-units
Remarks
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.SetUnderlinePosition(int)
protected virtual void SetUnderlinePosition(int underlinePosition)
Parameters
underlinePosition
int
SetUnderlineThickness(int)
protected virtual void SetUnderlineThickness(int underineThickness)
Parameters
underineThickness
int
SetUnitsPerEm(int)
protected virtual void SetUnitsPerEm(int unitsPerEm)
Parameters
unitsPerEm
int
SetWinAscender(int)
protected virtual void SetWinAscender(int winAscender)
Parameters
winAscender
int
SetWinDescender(int)
protected virtual void SetWinDescender(int winDescender)
Parameters
winDescender
int
SetXHeight(int)
protected virtual void SetXHeight(int xHeight)
Parameters
xHeight
int
UpdateBbox(float, float, float, float)
protected virtual void UpdateBbox(float llx, float lly, float urx, float ury)