mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2025-12-20 04:10:01 +01:00
* src/base/ftadvanc.c (ft_face_scale_advances_): Adjust scaling.
This is safe because advances are short originally.
This commit is contained in:
parent
0d410eb9aa
commit
ae63cc0d13
1 changed files with 2 additions and 1 deletions
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include <freetype/ftadvanc.h>
|
||||
#include <freetype/internal/ftobjs.h>
|
||||
#include <freetype/internal/ftcalc.h>
|
||||
|
||||
|
||||
static FT_Error
|
||||
|
|
@ -47,7 +48,7 @@
|
|||
/* (see `FT_Load_Glyph' implementation in src/base/ftobjs.c) */
|
||||
|
||||
for ( nn = 0; nn < count; nn++ )
|
||||
advances[nn] = FT_MulDiv( advances[nn], scale, 64 );
|
||||
advances[nn] = FT_MulFix( 1024 * advances[nn], scale );
|
||||
|
||||
return FT_Err_Ok;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue