ScaledFont.create

Creates a cairo_scaled_font_t object from a font face and matrices that describe the size of the font and the environment in which it will be used. Since 1.0

Parameters

fontFace FontFace

a cairo_font_face_t

fontMatrix Matrix

font space to user space transformation matrix for the font. In the simplest case of a N point font, this matrix is just a scale by N, but it can also be used to shear the font or stretch it unequally along the two axes. See cairo_set_font_matrix().

ctm Matrix

user to device transformation matrix with which the font will be used.

options FontOption

options to use when getting metrics for the font and rendering with it.

Return Value

a newly created cairo_scaled_font_t. Destroy with ScaledFont.destroy