for UI text drawing use BLF_ascender(fs->uifont_id) rather then BLF_height(fs->uifont...
authorCampbell Barton <ideasman42@gmail.com>
Sat, 6 Aug 2011 06:38:18 +0000 (06:38 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 6 Aug 2011 06:38:18 +0000 (06:38 +0000)
commitdc4dede8029801580683551b39f967c206720736
tree6e9de289013028531bea4174627ec7025b2b3b43
parentd78be1f76209bed9924ff2439ac3f817aee7966c
for UI text drawing use BLF_ascender(fs->uifont_id) rather then BLF_height(fs->uifont_id, "2"), while profiling draw noticed that the hash lookup on the character and utf8 next were being called on every text draw, use BLF_ascender since it doesn't do any lookups.
source/blender/editors/interface/interface_style.c