Contents Up Previous Next

Font

A font is an object that can be set for a device context to determine the characteristics of text drawn with dc-draw-text.

font-create
font-delete


font-create

long ( font-create long point-size word family word style word weight long underlined optional stringfacename)

Creates a font for use in a device context.

point-size gives the font point size.

family may be one of wxROMAN, wxSCRIPT, wxDECORATIVE, wxSWISS, wxMODERN, wxDEFAULT.

style may be one of wxNORMAL, wxITALIC.

weight may be one of wxBOLD, wxLIGHT, wxNORMAL.

underlined may be 1 or 0.

facename is an optional font facename, for specifying the exact font face required.


font-delete

long ( font-delete long font-id)

Deletes the given font.