Commit 7f57740
committed
Fix calculation of kerning values.
For the straight `get_kerning` call, the result should be in subpixels,
since the callers (in Python) correctly scale it by 64 themselves.
For the glyph advancement calculation, both `pen` (used for glyph
transform and with content boxes) and kerning are in 26.6 fractional
pixels.
Therefore, there's no need to scale either case by 2**6 (64).1 parent c404b9f commit 7f57740
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
605 | | - | |
| 605 | + | |
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
643 | | - | |
| 643 | + | |
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
| |||
0 commit comments