Class Cairo.ScaledFont
- Description
ScaledFont represents a realization of a font face at a particular size and transformation and a certain set of font options
- Method
create
Cairo.ScaledFont Cairo.ScaledFont(
FontFace
font_face
,Matrix
font_matrix
,Matrix
ctm
,FontOptions
options
)- Description
Creates a ScaledFont object from a font face and matrices that describe the size of the font and the environment in which it will be used.
- Parameter
font_face
a FontFace
- Parameter
font_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 Context->set_font_matrix().
- Parameter
ctm
user to device transformation matrix with which the font will be used.
- Parameter
options
options to use when getting metrics for the font and rendering with it.