mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[subset/ValueFormat] Micro-optimize
This commit is contained in:
parent
5676adefbc
commit
dcecb4d16b
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue