Sets the font for a specific form (Vermont Views for Windows or Web Edition Only)
| Call | |
| #include <vv_win.h> | |
| HFONT sfm_font(UCHAR *font_name, int font_ptsize, UINT font_style, LOGFONT *lplf, FORMPTR fmp); | |
| char *font_name | Pointer to the font name |
| UCHAR font_ptsize | Point size of the font |
| UCHAR font_style | Style of the font |
| LOGFONT *lplf | Pointer to the Windows LOGFONT structure |
| FORMPTR fmp | Form to set the font to |
| Returns | |
| HFONT | Handle to a Windows font |
| Description | |
| sfm_font() sets the form font. If LOGFONT *lplf is NOT NULL, the font described by the lplf structure is used, otherwise a new font is created using the first 3 arguments. If the window already has a font specified, the existing font is released and its resources destroyed. | |
| Related Functions | |
| latt_rplfont(), se_font(), sw_font(), sw_fontptr() | |
| Cautions | |
| This function is available in Vermont Views for Windows only. For backward compatibility with other operating systems, place this function call within a #ifdef __WIN32__, #endif pair. | |