[style] Fix another float conversion warning
This commit is contained in:
parent
5a1a6f1fe3
commit
9c27045158
|
@ -109,7 +109,7 @@ hb_style_get_value (hb_font_t *font, hb_tag_t tag)
|
||||||
return face->table.OS2->v5 ().get_optical_size (&lower, &upper)
|
return face->table.OS2->v5 ().get_optical_size (&lower, &upper)
|
||||||
? (float) (lower + upper) / 2.f
|
? (float) (lower + upper) / 2.f
|
||||||
: hb_ot_layout_get_size_params (face, &design, nullptr, nullptr, nullptr, nullptr)
|
: hb_ot_layout_get_size_params (face, &design, nullptr, nullptr, nullptr, nullptr)
|
||||||
? design / 10.
|
? design / 10.f
|
||||||
: 12.f;
|
: 12.f;
|
||||||
}
|
}
|
||||||
case HB_STYLE_TAG_SLANT_ANGLE:
|
case HB_STYLE_TAG_SLANT_ANGLE:
|
||||||
|
|
Loading…
Reference in New Issue