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 /include/vkvg.h | |
| parent | b51886c9fe9b591ff7f373c0719fbc51cf0a29e6 (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.h | 6 |
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. |