wxCanvas::SetFont

void SetFont(wxFont *font)

Sets the current font for the canvas. The font is not copied, so you should not delete the font unless the canvas pen has been set to another font, or to NULL.

See also wxFont, wxCanvas::DrawText.