From 19dcd32ee5942d17f9b9d45d7e13fd06206f54b8 Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Mon, 12 Oct 2020 09:53:00 -0700 Subject: UI: Remove Hard-coded Default Font Size Default text output routines (which do not specify a size) will now use Text Style point size. Differential Revision: https://developer.blender.org/D9107 Reviewed by Brecht Van Lommel --- source/blender/blenfont/BLF_api.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/blenfont/BLF_api.h') diff --git a/source/blender/blenfont/BLF_api.h b/source/blender/blenfont/BLF_api.h index bf84f5c57b3..17a650e28f5 100644 --- a/source/blender/blenfont/BLF_api.h +++ b/source/blender/blenfont/BLF_api.h @@ -163,8 +163,13 @@ float BLF_height_ex(int fontid, const char *str, size_t len, struct ResultBLF *r float BLF_height(int fontid, const char *str, size_t len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); /* Return dimensions of the font without any sample text. */ + int BLF_height_max(int fontid) ATTR_WARN_UNUSED_RESULT; +int BLF_default_height_max(void) ATTR_WARN_UNUSED_RESULT; + float BLF_width_max(int fontid) ATTR_WARN_UNUSED_RESULT; +float BLF_default_width_max(void) ATTR_WARN_UNUSED_RESULT; + float BLF_descender(int fontid) ATTR_WARN_UNUSED_RESULT; float BLF_ascender(int fontid) ATTR_WARN_UNUSED_RESULT; -- cgit v1.2.3