diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2022-08-09 03:23:25 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2022-08-09 03:23:25 +0300 |
commit | 8b3e3c18100aac6ac956e782dc108aae500eac93 (patch) | |
tree | ce282ca9cfd692bff53d907625b25e345941571c /source/blender/blenfont/intern/blf_internal.h | |
parent | f5fc9a7edf01c5801ddb52d6cbd6ae9ee82b1036 (diff) |
Fix T100242: Handle Flushed FT Sizes
Properly deal with FreeType cache flushing a font's ft_size. Set this
to NULL in finalizer, and add a blf_ensure_size to make sure it
exists only when needed.
See D15639 for more details.
Differential Revision: https://developer.blender.org/D15639
Reviewed by Brecht Van Lommel
Diffstat (limited to 'source/blender/blenfont/intern/blf_internal.h')
-rw-r--r-- | source/blender/blenfont/intern/blf_internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenfont/intern/blf_internal.h b/source/blender/blenfont/intern/blf_internal.h index 8ff00d05e02..b7dea9d5ef5 100644 --- a/source/blender/blenfont/intern/blf_internal.h +++ b/source/blender/blenfont/intern/blf_internal.h @@ -49,6 +49,7 @@ bool blf_font_id_is_valid(int fontid); uint blf_get_char_index(struct FontBLF *font, uint charcode); bool blf_ensure_face(struct FontBLF *font); +bool blf_ensure_size(struct FontBLF *font); void blf_draw_buffer__start(struct FontBLF *font); void blf_draw_buffer__end(void); |