-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[skrifa] simplify orientation computation (#1260)
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.
- Loading branch information
Showing
1 changed file
with
6 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters