diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2026-10-27 09:00:37 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2026-10-27 09:00:37 +0100 |
| commit | 7ff0e5d3085aa830f7fe3b32fb5ce1d9c265ae04 (patch) | |
| tree | 6ad6c1f12c9af2d2d5893670f7ea292ae1dfbe5c /tests/fonts/allfont.c | |
| parent | b51886c9fe9b591ff7f373c0719fbc51cf0a29e6 (diff) | |
vkvg_font_size_t holding pixel sized font, lightweight vkvg_font_t with only ptSizedev
Diffstat (limited to 'tests/fonts/allfont.c')
| -rw-r--r-- | tests/fonts/allfont.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fonts/allfont.c b/tests/fonts/allfont.c index dc7d20c..8e8374b 100644 --- a/tests/fonts/allfont.c +++ b/tests/fonts/allfont.c @@ -172,7 +172,7 @@ void draw(VkvgSurface surfFont) { char tmp[1024]; - VkvgFont mono = vkvg_font_create(surf, "mono", 12); + VkvgFont mono = vkvg_font_create(device, "mono", 12); for (int i = curFontStartIdx; i < font_database->nfont; i++) { FcPattern* font_entry = font_database->fonts[i]; @@ -199,7 +199,7 @@ void draw(VkvgSurface surfFont) { if (onlyVariable && !variable) continue; - VkvgFont font = vkvg_font_create (surf, tmp, fontSize); + VkvgFont font = vkvg_font_create (device, tmp, fontSize); if (vkvg_font_status(font)) { printf("Error trying to load %s, from %s\n", tmp, file_path); fflush(stdout); |