FreeType's outline orientation function computes the control box and then uses the extents to calculate a shift value that drops up to 14 bits of precision for each coordinate to avoid overflows when accumulating signed area.
Our inputs are always 16 bits so this does nothing but waste cycles and this patch drops that code. Also updates the accumulator to 64 bits just to be defensive against overflows.
FreeType's outline orientation function computes the control box and then uses the extents to calculate a shift value that drops up to 14 bits of precision for each coordinate to avoid overflows when accumulating signed area.
Our inputs are always 16 bits so this does nothing but waste cycles and this patch drops that code. Also updates the accumulator to 64 bits just to be defensive against overflows.