diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2020-06-06 01:39:17 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2020-06-06 01:39:17 +0300 |
commit | b74cc23dc478f2c4260e2e4269c8450e3d5c450e (patch) | |
tree | e540058bab2816422cff19043ffb1766a804f6e8 /source/blender/blenfont/intern/blf_internal_types.h | |
parent | fc672ce8e24e5fc62a42010dad790324f2b99a2d (diff) |
UI: Ability to Print Bold and Italics
Adds the ability to print text in bold or italics style, synthesized from a single base UI font.
Differential Revision: https://developer.blender.org/D7893
Reviewed by Brecht Van Lommel
Diffstat (limited to 'source/blender/blenfont/intern/blf_internal_types.h')
-rw-r--r-- | source/blender/blenfont/intern/blf_internal_types.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenfont/intern/blf_internal_types.h b/source/blender/blenfont/intern/blf_internal_types.h index 362cbf6730f..34b674670fd 100644 --- a/source/blender/blenfont/intern/blf_internal_types.h +++ b/source/blender/blenfont/intern/blf_internal_types.h @@ -65,6 +65,9 @@ typedef struct GlyphCacheBLF { /* and dpi. */ unsigned int dpi; + bool bold; + bool italic; + /* and the glyphs. */ ListBase bucket[257]; @@ -218,13 +221,10 @@ typedef struct FontBLF { /* font options. */ int flags; - /* list of glyph cache for this font. */ - ListBase cache; - - /* current glyph cache, size and dpi. + /* List of glyph caches (GlyphCacheBLF) for this font for size, dpi, bold, italic. * Use blf_glyph_cache_acquire(font) and blf_glyph_cache_release(font) to access cache! */ - GlyphCacheBLF *glyph_cache; + ListBase cache; /* list of kerning cache for this font. */ ListBase kerning_caches; |