Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarley Acheson <harley.acheson@gmail.com>2020-10-12 19:53:00 +0300
committerHarley Acheson <harley.acheson@gmail.com>2020-10-12 19:53:00 +0300
commit19dcd32ee5942d17f9b9d45d7e13fd06206f54b8 (patch)
tree367e02853f9f25e96bc8d0c5be34616aa5bc8a0a /source/blender/blenfont/BLF_api.h
parent1b7458f85a6fbee8bbe072f470b6b576221da101 (diff)
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
Diffstat (limited to 'source/blender/blenfont/BLF_api.h')
-rw-r--r--source/blender/blenfont/BLF_api.h5
1 files changed, 5 insertions, 0 deletions
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;