more double changes
This commit is contained in:
parent
9424e80526
commit
c48f53d309
|
@ -49,7 +49,7 @@ struct BlendArg : Number
|
|||
|
||||
inline void set_int (int v) { reset_blends (); Number::set_int (v); }
|
||||
inline void set_fixed (int32_t v) { reset_blends (); Number::set_fixed (v); }
|
||||
inline void set_real (float v) { reset_blends (); Number::set_real (v); }
|
||||
inline void set_real (double v) { reset_blends (); Number::set_real (v); }
|
||||
|
||||
inline void set_blends (unsigned int numValues_, unsigned int valueIndex_,
|
||||
unsigned int numBlends, const BlendArg *blends_)
|
||||
|
@ -172,7 +172,7 @@ struct CFF2CSInterpEnv : CSInterpEnv<BlendArg, CFF2Subrs>
|
|||
double v = arg.to_real ();
|
||||
for (unsigned int i = 0; i < scalars.len; i++)
|
||||
{
|
||||
v += scalars[i] * arg.deltas[i].to_real ();
|
||||
v += (double)scalars[i] * arg.deltas[i].to_real ();
|
||||
}
|
||||
arg.set_real (v);
|
||||
arg.deltas.resize (0);
|
||||
|
|
|
@ -171,7 +171,7 @@ test_extents_cff2_vsindex (void)
|
|||
g_assert_cmpint (extents.x_bearing, ==, 11);
|
||||
g_assert_cmpint (extents.y_bearing, ==, 656);
|
||||
g_assert_cmpint (extents.width, ==, 653);
|
||||
g_assert_cmpint (extents.height, ==, -657);
|
||||
g_assert_cmpint (extents.height, ==, -656);
|
||||
|
||||
result = hb_font_get_glyph_extents (font, 2, &extents);
|
||||
g_assert (result);
|
||||
|
|
Loading…
Reference in New Issue