API Reference / @gtkx/cairo / FontFace
Abstract Class: FontFace
Defined in: packages/cairo/src/font-face.ts:69
A cairo font face (cairo_font_face_t): a typeface independent of size and transformation. Font faces come from create or a context, and wrap as the concrete class their type reports (instanceof ToyFontFace after selectFontFace).
Extended by
Constructors
Constructor
new FontFace():
FontFace
Returns
FontFace
Properties
__type__
__type__:
bigint
Defined in: packages/cairo/src/font-face.ts:81
GType of CairoFontFace, the boxed type this class is registered under.
Methods
getReferenceCount()
getReferenceCount():
number
Defined in: packages/cairo/src/font-face.ts:94
Returns the reference count of the font face.
Returns
number
getType()
getType():
FontType
Defined in: packages/cairo/src/font-face.ts:89
Returns the backend the font face belongs to.
Returns
status()
status():
Status
Defined in: packages/cairo/src/font-face.ts:84
Returns the error status of the font face, Status.SUCCESS when it is usable.
Returns
create()
staticcreate(family,slant,weight):ToyFontFace
Defined in: packages/cairo/src/font-face.ts:76
Creates a toy font face from a family name, slant and weight.
Parameters
family
string