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:
authorCampbell Barton <ideasman42@gmail.com>2011-05-04 19:09:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-04 19:09:48 +0400
commit015a32d01c4df3377eec1470827f459d43061b6d (patch)
treedeecbb3fbe5fce392a693889d3c0aceaf3300596 /source/blender/blenfont/BLF_api.h
parentd000103e80c076fb5bbdfbc87dc978b5e693564d (diff)
new BLF functions
- BLF_height_max - BLF_width_max - BLF_descender - BLF_ascender use for tooltip and image stamp.
Diffstat (limited to 'source/blender/blenfont/BLF_api.h')
-rw-r--r--source/blender/blenfont/BLF_api.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenfont/BLF_api.h b/source/blender/blenfont/BLF_api.h
index 44d3cf2c61b..57f8c83eda6 100644
--- a/source/blender/blenfont/BLF_api.h
+++ b/source/blender/blenfont/BLF_api.h
@@ -91,6 +91,14 @@ float BLF_width(int fontid, const char *str);
float BLF_height(int fontid, const char *str);
/*
+ * Return dimensions of the font without any sample text.
+ */
+float BLF_height_max(int fontid);
+float BLF_width_max(int fontid);
+float BLF_descender(int fontid);
+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.
*/