diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-05-03 10:55:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-05-03 11:01:20 +0300 |
commit | ccaab7268572f1640411309463009b3a3453b247 (patch) | |
tree | 300cebf59fa9457b25ad0f3abe9c836363126743 /source/blender/blenfont/BLF_api.h | |
parent | 5366eb89c6eb4057edfdf16eb42f31d34f6a0ba4 (diff) |
BLF: use 'int' for internal glyph x,y bearing
These were stored as float but were originally cast from an int
and were often cast back to int.
Also use int pairs for dimensions values.
Diffstat (limited to 'source/blender/blenfont/BLF_api.h')
-rw-r--r-- | source/blender/blenfont/BLF_api.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenfont/BLF_api.h b/source/blender/blenfont/BLF_api.h index 2158596745a..ddb88cf61ed 100644 --- a/source/blender/blenfont/BLF_api.h +++ b/source/blender/blenfont/BLF_api.h @@ -121,7 +121,7 @@ typedef bool (*BLF_GlyphBoundsFn)(const char *str, const struct rcti *glyph_step_bounds, const int glyph_advance_x, const struct rctf *glyph_bounds, - const float glyph_bearing[2], + const int glyph_bearing[2], void *user_data); void BLF_boundbox_foreach_glyph_ex(int fontid, |