Table of Contents

Class FontMetrics

Namespace
iText.IO.Font
Assembly
itext.io.dll
public class FontMetrics
Inheritance
FontMetrics
Inherited Members

Constructors

FontMetrics()

public FontMetrics()

Fields

normalizationCoef

protected float normalizationCoef

Field Value

float

Methods

GetAdvanceWidthMax()

public virtual int GetAdvanceWidthMax()

Returns

int

GetAscender()

public virtual int GetAscender()

Returns

int

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

int

GetGlyphWidths()

public virtual int[] GetGlyphWidths()

Returns

int[]

GetItalicAngle()

public virtual float GetItalicAngle()

Returns

float

GetLineGap()

public virtual int GetLineGap()

Returns

int

GetNumberOfGlyphs()

public virtual int GetNumberOfGlyphs()

Returns

int

GetStemH()

public virtual int GetStemH()

Returns

int

GetStemV()

public virtual int GetStemV()

Returns

int

GetStrikeoutPosition()

public virtual int GetStrikeoutPosition()

Returns

int

GetStrikeoutSize()

public virtual int GetStrikeoutSize()

Returns

int

GetSubscriptOffset()

public virtual int GetSubscriptOffset()

Returns

int

GetSubscriptSize()

public virtual int GetSubscriptSize()

Returns

int

GetSuperscriptOffset()

public virtual int GetSuperscriptOffset()

Returns

int

GetSuperscriptSize()

public virtual int GetSuperscriptSize()

Returns

int

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

int

GetUnderlineThickness()

public virtual int GetUnderlineThickness()

Returns

int

GetUnitsPerEm()

public virtual int GetUnitsPerEm()

Returns

int

GetWinAscender()

public virtual int GetWinAscender()

Returns

int

GetWinDescender()

public virtual int GetWinDescender()

Returns

int

GetXHeight()

public virtual int GetXHeight()

Returns

int

IsFixedPitch()

public virtual bool IsFixedPitch()

Returns

bool

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

llx int
lly int
urx int
ury int

SetCapHeight(int)

Sets the capital letters height.

protected virtual void SetCapHeight(int capHeight)

Parameters

capHeight int

cap 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 int

typo 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 int

typo 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)

Parameters

llx float
lly float
urx float
ury float