FontFace

Description cairo_font_face_t represents a particular font at a particular weight, slant, and other characteristic but no size, transformation, or size. Font faces are created using font-backend-specific constructors, typically of the form cairo_backend_font_face_create(), or implicitly using the toy text API by way of cairo_select_font_face(). The resulting face can be accessed using cairo_get_font_face().

Constructors

this
this(cairo_font_face_t* cairo_font_face)

Sets our main struct and passes it to the parent class

Members

Functions

destroy
void destroy()

Decreases the reference count on font_face by one. If the result is zero, then font_face and all associated resources are freed. See cairo_font_face_reference().

getFontFaceStruct
cairo_font_face_t* getFontFaceStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getReferenceCount
uint getReferenceCount()

Returns the current reference count of font_face. Since 1.4

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
cairo_font_type_t getType()

This function returns the type of the backend used to create a font face. See cairo_font_type_t for available types. Since 1.2

getUserData
void* getUserData(cairo_user_data_key_t* 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.

reference
FontFace reference()

Increases the reference count on font_face by one. This prevents font_face from being destroyed until a matching call to cairo_font_face_destroy() is made. The number of references to a cairo_font_face_t can be get using cairo_font_face_get_reference_count().

setUserData
cairo_status_t setUserData(cairo_user_data_key_t* key, void* userData, cairo_destroy_func_t destroy)

Attach user data to font_face. To remove user data from a font face, call this function with the key that was used to set it and NULL for data.

status
cairo_status_t status()

Checks whether an error has previously occurred for this font face

Variables

cairo_font_face
cairo_font_face_t* cairo_font_face;

the main Gtk struct

Meta