Loading TTF-font from file and memory.
More...
|
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...
|
|
Loading TTF-font from file and memory.
NK_API char nkc_get_key_char |
( |
int |
code | ) |
|
Converts keyboard code to it's latin character (if have)
- Parameters
-
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