You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect actualBoundingBoxLeft with negative value #65
For common glyphs like "P" where actualBoundingBoxLeft is negative (the ink starts slightly to the right of the drawing origin, due to left sidebearing), the rasterized pixels were placed at the wrong position in the output buffer.
Fix: correct the sign of actualBoundingBoxLeft in both the width calculation and the fillText position.
Reproduction:
Actual:
Wanted:
Explanation
actualBoundingBoxLeft is -12px. p is 12px at the right of the origin.
Activity
lhapaipai commentedon May 4, 2026
Hi @mourner,
Tested with #67, it's perfect...