Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-05-03 09:51:34 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-05-03 09:51:34 +0300
commit0d65520f05ec5474e62d453aa62eb06efa3981d7 (patch)
tree2436b0d13a234c474f3bd2cf55bec6014603f886 /source/blender/blenfont/intern/blf_font.c
parentd388c1c524948df17d6c74c3830f2803ac4933b4 (diff)
BLF: add new arguments to BLF_GlyphBoundsFn
- glyph_bounds: to get the character width. - glyph_bearing: lower left character starting point. These values are needed for more precise glyph calculations.
Diffstat (limited to 'source/blender/blenfont/intern/blf_font.c')
-rw-r--r--source/blender/blenfont/intern/blf_font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenfont/intern/blf_font.c b/source/blender/blenfont/intern/blf_font.c
index ed92e9aaff2..0eee887efa6 100644
--- a/source/blender/blenfont/intern/blf_font.c
+++ b/source/blender/blenfont/intern/blf_font.c
@@ -1252,7 +1252,7 @@ static void blf_font_boundbox_foreach_glyph_ex(FontBLF *font,
pen_x += g->advance_i;
- if (user_fn(str, i_curr, &gbox, g->advance_i, user_data) == false) {
+ if (user_fn(str, i_curr, &gbox, g->advance_i, &g->box, &g->pos_x, user_data) == false) {
break;
}