parent
732a9164d9
commit
d03eecb4d6
|
@ -91,7 +91,10 @@ struct glyf
|
||||||
static bool
|
static bool
|
||||||
_add_loca_and_head (hb_subset_plan_t * plan, Iterator padded_offsets)
|
_add_loca_and_head (hb_subset_plan_t * plan, Iterator padded_offsets)
|
||||||
{
|
{
|
||||||
unsigned max_offset = + padded_offsets | hb_reduce(hb_add, 0);
|
unsigned max_offset =
|
||||||
|
+ padded_offsets
|
||||||
|
| hb_reduce (hb_add, 0)
|
||||||
|
;
|
||||||
unsigned num_offsets = padded_offsets.len () + 1;
|
unsigned num_offsets = padded_offsets.len () + 1;
|
||||||
bool use_short_loca = max_offset < 0x1FFFF;
|
bool use_short_loca = max_offset < 0x1FFFF;
|
||||||
unsigned entry_size = use_short_loca ? 2 : 4;
|
unsigned entry_size = use_short_loca ? 2 : 4;
|
||||||
|
|
Loading…
Reference in New Issue