NvtSetDisplayFont
BOOL NvtSetDisplayFont(
HDISPLAY hDisplay,  
HFONT hFont  
);

The NvtSetDisplayFont sets the font that is to be used when updating the display. The specified font must be fixed-width, otherwise the virtual cursor positioning will be incorrect in some cases.

Parameters

hDisplay
Handle to the virtual display.
hFont
Handle to the font that will be used with the virtual terminal. This parameter may be NULL, in which case a default fixed-width font will be used.

Return Value

If the function succeeds, the return value is non-zero. If the function fails, it returns zero.

Remarks

If the previous font was a default font created by the library as the result of a NULL font handle being passed to a function, it will be released. However, if the previous font was created by the application, the DeleteObject function must be called to release it.

Requirements

Client: Requires Windows Vista, Windows XP or Windows 2000 Professional.
Server: Requires Windows Server 2008, Windows Server 2003 or Windows 2000 Server.
Header: Include cstools6.h.
Library: Use csnvtav6.lib.

See Also

NvtGetDisplayFont, NvtSetDisplayFontName


Copyright © 2008 Catalyst Development Corporation. All rights reserved.