Blender Git Commit Log

Git Commits -> Revision d0856d1

Revision d0856d1 by Bastien Montagne (master)
June 24, 2018, 15:51 (GMT)
Fix most of 'disappearing' first letter in right-aligned labels.

BLF' blf_font_width_to_strlen() could easily generate strings with up to
nearly two pixels length over requested limit!

Note that the fiddling between floats and ints values make things really
confusing here... :/

There is still a few limit cases where, even though computed str length
is now always below reauested limit, we still get first letter
disappearing, no idea why currently.

Commit Details:

Full Hash: d0856d1d546a07acf29e3a2ac873fe7dc1d7c61b
Parent Commit: 6454319
Lines Changed: +4, -2

2 Modified Paths:

/source/blender/blenfont/intern/blf_font.c (+2, -2) (Diff)
/source/blender/editors/interface/interface_widgets.c (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021