Name
cairo.ScaledFont -- create scaled font
Synopsis
font = cairo.ScaledFont(font_face, font_matrix, ctm, options)
Function
Creates a Cairo scaled font object from a font face and matrices that describe the size of the font and the environment in which it will be used. The options argument must be a Cairo font options handle created with cairo.FontOptions() or cfontoptions:Copy() The font_matrix and ctm arguments must be Cairo matrices.

In the simplest case of a N point font, font_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.

This function returns a newly created Cairo scaled font. Destroy with cscaledfont:Free()

Inputs
font_face
a Cairo font face
font_matrix
font space to user space transformation matrix for the font
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
Results
font
a newly created Cairo scaled font

Show TOC