The CairoToyFontFace class can be used instead of CairoContext::selectFontFace() to create a toy font independently of a context.