[cairo.scaled_font.ScaledFont.destroy]
scaledFontCreate
fn
cairo.scaled_font.ScaledFont scaledFontCreate(cairo.font_face.FontFace fontFace, cairo.matrix.Matrix fontMatrix, cairo.matrix.Matrix ctm, cairo.font_options.FontOptions options)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.
Parameters
fontFace | a #cairo_font_face_t |
fontMatrix | 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.context.Context.setFontMatrix]. |
ctm | user to device transformation matrix with which the font will be used. |
options | options to use when getting metrics for the font and rendering with it. |
Returns
a newly created #cairo_scaled_font_t. Destroy with