mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 23:11:04 +01:00
[subset/ValueFormat] Micro-optimize
This commit is contained in:
1 parent
5676adefbc
commit
dcecb4d16b
1 file changed
+3
@@ -174,6 +174,9 @@ struct ValueFormat : HBUINT16
|
||||
if (format & xAdvance) x_adv = copy_value (c, new_format, xAdvance, *values++);
|
||||
if (format & yAdvance) y_adv = copy_value (c, new_format, yAdvance, *values++);
|
||||
|
||||
if (!has_device ())
|
||||
return;
|
||||
|
||||
if (format & xPlaDevice)
|
||||
{
|
||||
add_delta_to_value (x_placement, base, values, layout_variation_idx_delta_map);
|
||||
|
||||
Reference in new issue
Block a user