Context.setFontFace

Replaces the current #cairo_font_face_t object in the #cairo_t with font_face. The replaced font face in the #cairo_t will be destroyed if there are no other references to it.

class Context
void
setFontFace

Parameters

fontFace cairo.font_face.FontFace

a #cairo_font_face_t, or null to restore to the default font