summaryrefslogtreecommitdiffstatsci
path: root/include/vkvg.h
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2026-10-27 09:00:37 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2026-10-27 09:00:37 +0100
commit7ff0e5d3085aa830f7fe3b32fb5ce1d9c265ae04 (patch)
tree6ad6c1f12c9af2d2d5893670f7ea292ae1dfbe5c /include/vkvg.h
parentb51886c9fe9b591ff7f373c0719fbc51cf0a29e6 (diff)
vkvg_font_size_t holding pixel sized font, lightweight vkvg_font_t with only ptSizedev
Diffstat (limited to 'include/vkvg.h')
-rw-r--r--include/vkvg.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/vkvg.h b/include/vkvg.h
index 48fca2d..33154b8 100644
--- a/include/vkvg.h
+++ b/include/vkvg.h
@@ -338,16 +338,16 @@ typedef struct _vkvg_font_t* VkvgFont;
* @param pointSize The font size in point unit, 1/72 of an inch.
* @return A new VkvgFont or null if an error occured.
*/
-vkvg_public VkvgFont vkvg_font_create (VkvgSurface surf, const char* queryString, float pointSize);
+vkvg_public VkvgFont vkvg_font_create (VkvgDevice dev, const char* queryString, float pointSize);
/**
* @brief Create a new @ref VkvgFont from the provided font file, face index and size.
- * @param surf VkvgDevice holding the font cache.
+ * @param dev VkvgDevice holding the font cache.
* @param fontFilePath a valid font file path.
* @param faceIndex Usually 0, except for variable fonts or font file with multiple faces.
* @param pointSize The font size in point unit, 1/72 of an inch.
* @return
*/
-vkvg_public VkvgFont vkvg_font_create_from_file (VkvgSurface surf, const char* fontFilePath, int faceIndex, float pointSize);
+vkvg_public VkvgFont vkvg_font_create_from_file (VkvgDevice dev, const char* fontFilePath, int faceIndex, float pointSize);
/**
* @brief Get underlying font face object pointer, if freetype is enable, the FT_Face will be returned.
* @param font a valid VkvgFont.