Syntax
VM_RESULT vm_graphic_set_font(
    VMWSTR font_file_paths[], 
    VMINT number_of_fonts
);
ContentsIndex
PreviousUpNext
vm_graphic_set_font
Syntax
VM_RESULT vm_graphic_set_font(
    VMWSTR font_file_paths[], 
    VMINT number_of_fonts
);
Description

Set app's own fonts, afterward, engine will try to find the font for a character from these font files one by one, the font with smaller index in the font_file_paths array will have higher priority. If there is no related font in thest font files for a character, the system font will be used. Please call this API after VM_MSG_PAINT event. Set fonts clears the internal cache of the text rendering engine, therefore performance-wise it is better to prevent Reset/Set fonts frequently.

Parameters
Parameters 
Description 
VMWSTR font_file_paths[] 
[IN] array of font paths, fullpath of the font data file, for example, L"E:\MTKYH2312F.ttf" 
VMINT number_of_fonts 
[IN] number of fonts 
Returns
File

vmgraphic_font.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.