Sets the font for a specific window (Vermont Views for Windows or Web Edition Only)
| Call | |
| #include <vv_win.h> | |
| HFONT sw_font(UCHAR *font_name, int font_ptsize, UINT font_style, LOGFONT *lplf, WINDOWPTR wnp); | |
| 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 |
| WINDOWPTR wnp | Window to set the font to |
| Returns | |
| HFONT | Handle to a Windows font |
| Description | |
| sw_font() sets the window 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_fontptr(), sfm_font() | |
| 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. | |