Blender Git Commit Log

Git Commits -> Revision ffe03cd

Revision ffe03cd by Bastien Montagne (master)
October 3, 2015, 07:29 (GMT)
Fix Broken Font Preview (reported over IRC by kopias, thanks).

Broken by font wrap commit rBf2341f829654c4dc97, there was actually two things here:
* Using non-initialized color (which lead to transparent drawing...), we need to use new
`blf_draw_buffer__start/end` helpers here too, made them shared internally.
* Using `draw_str_i18n_nbr` as `draw_str[i]` length, ugh! That's the number of utf8 glyphs of
translated string, not the length of untranslated string!

This fix must be backported to final 2.76.

Commit Details:

Full Hash: ffe03cd264f39d27047393d4db745ea8dae19d5f
Parent Commit: 41d0547
Lines Changed: +9, -3

3 Modified Paths:

/source/blender/blenfont/intern/blf.c (+2, -2) (Diff)
/source/blender/blenfont/intern/blf_internal.h (+3, -0) (Diff)
/source/blender/blenfont/intern/blf_thumbs.c (+4, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021