Glyph cache is cleared by UI_view2d_zoom_cache_reset, when zooming V2D, but is requir...
authorRichard Antalik <richardantalik@gmail.com>
Sat, 23 Feb 2019 14:14:44 +0000 (06:14 -0800)
committerRichard Antalik <richardantalik@gmail.com>
Sat, 23 Feb 2019 14:14:44 +0000 (06:14 -0800)
commit6bcdcc96c2548e0ee5e18acc37915aedee6329e0
tree92fb7e5870dd89a9a0db6f5373d7ca2d1d38a185
parent6eb59c57782724cdcbc1564356f2c2e2619c01ec
Glyph cache is cleared by UI_view2d_zoom_cache_reset, when zooming V2D, but is required to calculate text height in UI_view2d_text_cache_draw

This caused text in strips to "jump around"

There was a comment in UI_view2d_zoom_cache_reset:
While scaling we can accumulate fonts at many sizes (~20 or so).
Not an issue with embedded font, but can use over 500Mb with i18n ones! See [#38244].

Reviewed by: Brecht

Differential revision: https://developer.blender.org/D4389
source/blender/blenkernel/BKE_sequencer.h
source/blender/blenkernel/intern/sequencer.c
source/blender/editors/interface/view2d.c
source/blender/editors/space_sequencer/sequencer_draw.c
source/blender/editors/space_sequencer/sequencer_view.c