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>2021-11-03 00:27:29 +0300
committerHarley Acheson <harley.acheson@gmail.com>2021-11-03 00:28:25 +0300
commitc4b73847d31add1a433acba8423982b288c8e7d9 (patch)
tree2190547443ddc336a87c561396e46d919eeef6a3 /source/blender/blenfont/intern/blf_internal_types.h
parent8c58838f6aa98c540e630cc556910f7d465e6507 (diff)
BLF: Remove Thread Locking For Font Metrics
This patch removes the need to lock the thread just to get to some generic (not glyph-specific) font metrics. See D12976 for more details. Differential Revision: https://developer.blender.org/D12976 Reviewed by Campbell Barton
Diffstat (limited to 'source/blender/blenfont/intern/blf_internal_types.h')
-rw-r--r--source/blender/blenfont/intern/blf_internal_types.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/source/blender/blenfont/intern/blf_internal_types.h b/source/blender/blenfont/intern/blf_internal_types.h
index e90f82da7f3..aae666fa182 100644
--- a/source/blender/blenfont/intern/blf_internal_types.h
+++ b/source/blender/blenfont/intern/blf_internal_types.h
@@ -86,13 +86,6 @@ typedef struct GlyphCacheBLF {
int bitmap_len_landed;
int bitmap_len_alloc;
- /* and the bigger glyph in the font. */
- int glyph_width_max;
- int glyph_height_max;
-
- /* ascender and descender value. */
- float ascender;
- float descender;
} GlyphCacheBLF;
typedef struct GlyphBLF {
@@ -214,6 +207,9 @@ typedef struct FontBLF {
/* font size. */
unsigned int size;
+ /* Column width when printing monospaced. */
+ int fixed_width;
+
/* max texture size. */
int tex_size_max;