cairo_ft_font_get_pattern3cairo_ft_font_get_patternGets the FcPattern for a FreeType
backend fontFcPattern * cairo_ft_font_get_pattern
(cairo_font_t *font)font :A cairo_font_t from the FreeType font backend. Such
an object can be created with cairo_ft_font_create or
cairo_ft_font_create_for_ft_face. On some platforms the font
from cairo_current_font will also be a FreeType font, but
using this functionality with fonts you don't create
yourself is not recommended.
Descriptionfunctionscairo_ft_font_get_patterncairo_ft_font_get_pattern gets the FcPattern
for a FreeType backend font. The return value is owned
by the font, so you must not modify it, and must call
FcPatternReference to keep a persistant
reference to the pattern. If the font was created with
cairo_ft_font_create_for_ft_face the result will be NULL.