Round, instead of floor, when applying variations
Hoping this would fix remaining text-rendering-tests failures, but so far no luck.
This commit is contained in:
parent
6dc6f0c9f8
commit
7cdd6ab068
|
@ -541,7 +541,7 @@ struct hb_font_t {
|
|||
}
|
||||
inline hb_position_t em_scalef (float v, int scale)
|
||||
{
|
||||
return (hb_position_t) (v * scale / face->get_upem ());
|
||||
return (hb_position_t) round (v * scale / face->get_upem ());
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
#define HB_OT_H_IN
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
|
Loading…
Reference in New Issue