diff options
author | Campbell Barton <campbell@blender.org> | 2022-08-28 13:46:53 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-08-28 13:46:53 +0300 |
commit | 7269ee4dbbc2d46eee864029772aa0e167cd267a (patch) | |
tree | 5d879c450e9f2d7b7031d37df99c92f205f75c22 /source/blender/blenfont/intern/blf_font.c | |
parent | 206272621e2f2a9c565a659284a219129d7f2fe8 (diff) |
Cleanup: use const FontBLF arguments
Diffstat (limited to 'source/blender/blenfont/intern/blf_font.c')
-rw-r--r-- | source/blender/blenfont/intern/blf_font.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/blenfont/intern/blf_font.c b/source/blender/blenfont/intern/blf_font.c index 8941eb01d3a..886c34654c4 100644 --- a/source/blender/blenfont/intern/blf_font.c +++ b/source/blender/blenfont/intern/blf_font.c @@ -128,11 +128,10 @@ static void blf_size_finalizer(void *object) /** \name FreeType Utilities (Internal) * \{ */ -/* Return glyph id from charcode. */ -uint blf_get_char_index(struct FontBLF *font, uint charcode) +uint blf_get_char_index(FontBLF *font, uint charcode) { if (font->flags & BLF_CACHED) { - /* Use charmap cache for much faster lookup. */ + /* Use char-map cache for much faster lookup. */ return FTC_CMapCache_Lookup(ftc_charmap_cache, font, -1, charcode); } /* Fonts that are not cached need to use the regular lookup function. */ @@ -149,7 +148,7 @@ static ft_pix blf_unscaled_F26Dot6_to_pixels(FontBLF *font, FT_Pos value) FT_Long scaled = FT_MulFix(value, font->ft_size->metrics.x_scale); /* Copied from FreeType's FT_Get_Kerning (with FT_KERNING_DEFAULT), scaling down */ - /* kerning distances at small ppem values so that they don't become too big. */ + /* kerning distances at small PPEM values so that they don't become too big. */ if (font->ft_size->metrics.x_ppem < 25) { scaled = FT_MulDiv(scaled, font->ft_size->metrics.x_ppem, 25); } |