Nuklear+
 All Classes Files Functions Enumerations Enumerator Macros Groups Pages
Functions
Font loading and handling

Loading TTF-font from file and memory. More...

Functions

NK_API void nkc_style_set_font (struct nkc *nkcHandle, const struct nk_user_font *font)
 
NK_API struct nk_user_font * nkc_load_font_file (struct nkc *nkcHandle, const char *filename, float size, const nk_rune *symbolsRange)
 Load font from TTF-file from disk. More...
 
NK_API struct nk_user_font * nkc_load_font_memory (struct nkc *nkcHandle, const void *membuf, int membufSize, float size, const nk_rune *symbolsRange)
 
NK_API char nkc_get_key_char (int code)
 Converts keyboard code to it's latin character (if have) More...
 

Detailed Description

Loading TTF-font from file and memory.

Function Documentation

NK_API char nkc_get_key_char ( int  code)

Converts keyboard code to it's latin character (if have)

Parameters
code- NK_KEY_ code
NK_API struct nk_user_font* nkc_load_font_file ( struct nkc *  nkcHandle,
const char *  filename,
float  size,
const nk_rune *  symbolsRange 
)

Load font from TTF-file from disk.

Parameters
size- size of the rendered text in points (ex. 14pt)
symbolsRange- will be given directly yo Nuklear
Returns
NULL if error
NK_API void nkc_style_set_font ( struct nkc *  nkcHandle,
const struct nk_user_font *  font 
)

Differs from nk_style_set_font only on checking font for NULL