We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug The paths returned by font.getPaths(gids) are wrongly scaled.
font.getPaths(gids)
To Reproduce Steps to reproduce the behavior:
Run this script:
import skia font = skia.Font(skia.Typeface(None), 100) gid = 15 path1 = font.getPath(gid) print(path1.getBounds()) paths = font.getPaths([gid]) print(paths[0].getBounds())
Compare the first line of the output (which is correct) with the second line (which should be the same):
Rect(8.30078, -10.6445, 18.75, 14.8438) Rect(5.3125, -6.8125, 12, 9.5)
If I change the font size, the first line changes as expected, but the second stays the same.
(This is with the default font on macOS, so the actual numbers may vary per platform.)
Expected behavior
font.getPath(gid) does work as expected (so that's the workaround as well, making this issue super low priority).
font.getPath(gid)
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
e912ead
No branches or pull requests
Describe the bug
The paths returned by
font.getPaths(gids)
are wrongly scaled.To Reproduce
Steps to reproduce the behavior:
Run this script:
Compare the first line of the output (which is correct) with the second line (which should be the same):
If I change the font size, the first line changes as expected, but the second stays the same.
(This is with the default font on macOS, so the actual numbers may vary per platform.)
Expected behavior
font.getPath(gid)
does work as expected (so that's the workaround as well, making this issue super low priority).Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: