[repacker] add todo.

This commit is contained in:
Garret Rieger 2022-07-29 20:38:53 +00:00
parent 14f95ee0cf
commit 6a5e2cb2f8
1 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,10 @@ struct PairPosFormat1 : public OT::Layout::GPOS_impl::PairPosFormat1_3<SmallType
accumulated += c.graph.find_subgraph_size (pair_set_index, visited);
accumulated += SmallTypes::size; // for PairSet offset.
// TODO(garretrieger): don't count the size of the largest pairset against the limit, since
// it will be packed last in the order and does not contribute to
// the 64kb limit.
if (accumulated > (1 << 16))
{
split_points.push (i);