.. highlightlang:: us .. index:: FontSetPitchAndFamily .. _fontsetpitchandfamily: FontSetPitchAndFamily ===================== .. us.tag FontSetPitchAndFamily ENGLISH FontSet :ref:`FontSetPitchAndFamily` specifies the pitch and family of the font. .. function:: bool = FontSetPitchAndFamily(hFont, rsPitchAndFamily) .. us.return **Return Value** If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hFont Identifies the font. .. uparam:: rsPitchAndFamily *rsPitchAndFamily* is one of the following values: .. list-table:: :header-rows: 1 * - Value - Meaning * - DEFAULT_PITCH - Character width not set * - FIXED_PITCH - Font with constant width * - VARIABLE_PITCH - font with variable width and one of the following family values: .. list-table:: :header-rows: 1 * - Value - Meaning * - FF_DONTCARE - Non classified font * - FF_ROMAN - Serif fonts (Times Roman, Century, Schoolbook, etc.) * - FF_SWISS - Fonts without Serifs but with variable line width (Helvetica, Swiss, etc.) * - FF_MODERN - Font without Serifs with constant widths (Pica, Elite Courier, ect.) * - FF_SCRIPT - Scriptlike font (Cursive, etc.) * - FF_DECORATIVE - Decorative font (Old English, etc.) .. seealso:: :ref:`overview-fonts`, :ref:`FontCreate`, :ref:`FontDialog`, :ref:`FontGetPitchAndFamily` :sub:`id-406179`