API Reference / @gtkx/cairo / FtFontFace
Class: FtFontFace
Defined in: font-face.d.ts:41
A FreeType font face returned by Cairo or another native library.
Extends
Constructors
Constructor
new FtFontFace():
FtFontFace
Returns
FtFontFace
Inherited from
Properties
__type__
__type__:
bigint
Defined in: font-face.d.ts:23
GType of CairoFontFace, the boxed type this class is registered under.
Inherited from
Methods
getReferenceCount()
getReferenceCount():
number
Defined in: font-face.d.ts:29
Returns the reference count of the font face.
Returns
number
Inherited from
getSynthesize()
getSynthesize():
FtSynthesize
Defined in: font-face.d.ts:43
Returns the styles currently synthesized for the font face.
Returns
getType()
getType():
FontType
Defined in: font-face.d.ts:27
Returns the backend the font face belongs to.
Returns
Inherited from
setSynthesize()
setSynthesize(
synthFlags):void
Defined in: font-face.d.ts:45
Enables synthesizing of the given styles.
Parameters
synthFlags
Returns
void
status()
status():
Status
Defined in: font-face.d.ts:25
Returns the error status of the font face, Status.SUCCESS when it is usable.
Returns
Inherited from
unsetSynthesize()
unsetSynthesize(
synthFlags):void
Defined in: font-face.d.ts:47
Disables synthesizing of the given styles.
Parameters
synthFlags
Returns
void
create()
staticcreate(family,slant,weight):ToyFontFace
Defined in: font-face.d.ts:21
Creates a toy font face from a family name, slant and weight.
Parameters
family
string