wx_BGI_Graphics
Classic BGI-compatible graphics API with modern OpenGL extension API
Loading...
Searching...
No Matches
Functions
Embedded Font Query API

Functions for discovering and selecting bundled classic and modern fonts. More...

Collaboration diagram for Embedded Font Query API:

Functions

BGI_API int BGI_CALL wxbgi_font_count (void)
 Returns the number of built-in fonts known to the library.
 
BGI_API int BGI_CALL wxbgi_font_id (const char *name)
 Resolves a built-in font name to its font id.
 
BGI_API const char *BGI_CALL wxbgi_font_name (int fontId)
 Returns the display name for a built-in font id.
 

Detailed Description

Functions for discovering and selecting bundled classic and modern fonts.

Function Documentation

◆ wxbgi_font_count()

BGI_API int BGI_CALL wxbgi_font_count ( void  )

Returns the number of built-in fonts known to the library.

◆ wxbgi_font_id()

BGI_API int BGI_CALL wxbgi_font_id ( const char *  name)

Resolves a built-in font name to its font id.

Name matching ignores case, spaces, hyphens, and underscores. Returns -1 when the name is not recognized.

◆ wxbgi_font_name()

BGI_API const char *BGI_CALL wxbgi_font_name ( int  fontId)

Returns the display name for a built-in font id.

Returns NULL when fontId is unknown.