cairo.font_face
Module for [FontFace] class
class FontFace
Types 1
classFontFace : gobject.boxed.Boxed
A #cairo_font_face_t specifies all aspects of a font other than the size or font matrix (a font matrix is used to distort a font by shearing it or scaling it unequally in the two directions) . A font face can be set on a #cairo_t by using [cairo.context.Context.setFontFace]; the size and font matrix are set with [cairo.context.Context.setFontSize] and [cairo.context.Context.setFontMatrix].
There are various types of font faces, depending on the
<firstterm>font backend</firstterm> they use. The type of afont face can be queried using [cairo.font_face.FontFace.getFontType].
Memory management of #cairo_font_face_t is done with [cairo.font_face.FontFace.reference] and [cairo.font_face.FontFace.destroy].
Methods
cairo.types.FontType getFontType()This function returns the type of the backend used to create a font face. See #cairofonttypet for available types. Returns: The type of fontface.void * getUserData(cairo.types.UserDataKey key)Return user data previously attached to font_face using the specified key. If no user data has been attached with the given key this function returns null.cairo.types.Status status()Checks whether an error has previously occurred for this font face Returns: [cairo.types.Status.Success] or another error such as [cairo.types.Status.NoMemory].