Gets the current scaled font for a cairo_t. Since 1.4

class Context

Return Value

the current scaled font. This object is owned by cairo. To keep a reference to it, you must call ScaledFont.reference. This function never returns NULL. If memory cannot be allocated, a special "nil" cairo_scaled_font_t object will be returned on which ScaledFont.status returns CAIRO_STATUS_NO_MEMORY. Using this nil object will cause its error state to propagate to other objects it is passed to, (for example, calling cairo_set_scaled_font() with a nil font will trigger an error that will shutdown the cairo_t object).