Font

Font class

Constructors

this
this(HPDF_Font font)
Undocumented in source.

Members

Functions

getAscent
int getAscent()

Gets the vertical ascent of the font.

getBBox
Rect getBBox()

Gets the bounding box of the font.

getCapHeight
uint getCapHeight()

Gets the distance from the baseline of uppercase letters.

getDescent
int getDescent()

Gets the vertical descent of the font.

getEncodingName
string getEncodingName()

Gets the encoding name of the font.

getFontName
string getFontName()

Gets the name of the font.

getHandle
HPDF_HANDLE getHandle()
Undocumented in source. Be warned that the author may not have intended to support it.
getUnicodeWidth
int getUnicodeWidth(HPDF_UNICODE code)

Gets the width of a Unicode character in a specific font.

getXHeight
uint getXHeight()

Gets the distance from the baseline of lowercase letters.

measureText
uint measureText(string text, uint len, float width, float fontSize, float charSpace, float wordSpace, bool wordWrap, float* realWidth)

Calculates the byte length which can be included within the specified width.

textWidth
TextWidth textWidth(string text, uint len)

Gets total width of the text, number of characters, and number of words.

Variables

_font
HPDF_Font _font;
Undocumented in source.

Inherited Members

From IHaruObject

getHandle
HPDF_HANDLE getHandle()
Undocumented in source.

Meta