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/fontquery.c | |
| parent | b51886c9fe9b591ff7f373c0719fbc51cf0a29e6 (diff) | |
vkvg_font_size_t holding pixel sized font, lightweight vkvg_font_t with only ptSizedev
Diffstat (limited to 'tests/fonts/fontquery.c')
| -rw-r--r-- | tests/fonts/fontquery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fonts/fontquery.c b/tests/fonts/fontquery.c index 3296752..a780d38 100644 --- a/tests/fonts/fontquery.c +++ b/tests/fonts/fontquery.c @@ -282,7 +282,7 @@ void draw(VkvgSurface surfFont) { FcPatternGetString (font, FC_FAMILY, 0, &family_name); FcPatternGetString (font, FC_STYLE, 0, &style_variant); FcPatternGetBool(font, FC_VARIABLE, 0, &var); - VkvgFont f = vkvg_font_create_from_file(surf, (char*)fontFile, index, fontSize); + VkvgFont f = vkvg_font_create_from_file(device, (char*)fontFile, index, fontSize); if (vkvg_font_status(f)) { printf("Error trying to load %s, from %s\n", txtBuffCopy, fontFile); fflush(stdout); @@ -528,7 +528,7 @@ int main(int argc, char* argv[]) { strcpy (txtBuffer, "sans"); txtBuffPtr = 4; - sans16 = vkvg_font_create(surf, "sans", 16); + sans16 = vkvg_font_create(device, "sans", 16); while (!vkengine_should_close(e)) { glfwPollEvents(); |