cairo_ft_font_create 3 cairo_ft_font_create creates a font for the FreeType font backend cairo_font_t *cairo_ft_font_create (FcPattern *pattern, cairo_matrix_t *scale) pattern : A fully resolved fontconfig pattern. A pattern can be resolved, by, among other things, calling FcConfigSubstitute, FcDefaultSubstitute, then FcFontMatch. Cairo will call FcPatternReference on this pattern, so you should not further modify the pattern, but you can release your reference to the pattern with FcPatternDestroy if you no longer need to access it. scale : The scale at which this font will be used. The scale is given by multiplying the font matrix (see cairo_transform_font) by the current transformation matrix. The translation elements of the resulting matrix are ignored. Description functions cairo_ft_font_create cairo_ft_font_create creates a new font for the FreeType font backend based on a fontconfig pattern. This font can then be used with cairo_set_font, cairo_font_glyph_extents, or FreeType backend specific functions like cairo_ft_font_lock_face.