diff options
Diffstat (limited to 'source/blender/blenfont/BLF_api.h')
-rw-r--r-- | source/blender/blenfont/BLF_api.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenfont/BLF_api.h b/source/blender/blenfont/BLF_api.h index 8f77f8c984d..b25166f4b18 100644 --- a/source/blender/blenfont/BLF_api.h +++ b/source/blender/blenfont/BLF_api.h @@ -82,14 +82,14 @@ int BLF_draw_mono(int fontid, const char *str, size_t len, int cwidth); /* This function return the bounding box of the string * and are not multiplied by the aspect. */ -void BLF_boundbox(int fontid, const char *str, struct rctf *box); +void BLF_boundbox(int fontid, const char *str, size_t len, struct rctf *box); /* The next both function return the width and height * of the string, using the current font and both value * are multiplied by the aspect of the font. */ -float BLF_width(int fontid, const char *str); -float BLF_height(int fontid, const char *str); +float BLF_width(int fontid, const char *str, size_t len); +float BLF_height(int fontid, const char *str, size_t len); /* Return dimensions of the font without any sample text. */ float BLF_height_max(int fontid); @@ -100,7 +100,7 @@ float BLF_ascender(int fontid); /* The following function return the width and height of the string, but * just in one call, so avoid extra freetype2 stuff. */ -void BLF_width_and_height(int fontid, const char *str, float *width, float *height); +void BLF_width_and_height(int fontid, const char *str, size_t len, float *r_width, float *r_height); /* For fixed width fonts only, returns the width of a * character. @@ -111,9 +111,9 @@ float BLF_fixed_width(int fontid); * of the string, using the default font and both value * are multiplied by the aspect of the font. */ -void BLF_width_and_height_default(const char *str, float *width, float *height); -float BLF_width_default(const char *str); -float BLF_height_default(const char *str); +void BLF_width_and_height_default(const char *str, size_t len, float *r_width, float *r_height); +float BLF_width_default(const char *str, size_t len); +float BLF_height_default(const char *str, size_t len); /* Set rotation for default font. */ void BLF_rotation_default(float angle); |