-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
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
Refactors showText: split type3, remove showSpacedText #4832
Conversation
On windows:
|
The general structure looks good, but I'll need to go through this at least once more before I'm comfortable with merging it. (There's a few things I don't completely understand yet.) /botio test |
From: Bot.io (Linux)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.21.233.14:8877/c288e7d2157b071/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.22.172.223:8877/7d33185a646e24b/output.txt |
From: Bot.io (Windows)FailedFull output at http://107.22.172.223:8877/7d33185a646e24b/output.txt Total script time: 2.71 mins
Image differences available at: http://107.22.172.223:8877/7d33185a646e24b/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux)FailedFull output at http://107.21.233.14:8877/c288e7d2157b071/output.txt Total script time: 26.42 mins
Image differences available at: http://107.21.233.14:8877/c288e7d2157b071/reftest-analyzer.html#web=eq.log |
x += fontDirection * wordSpacing; | ||
continue; | ||
} else if (isNum(glyph)) { | ||
x += -glyph * fontSize * 0.001; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is perhaps textHScale
missing here? I.e. shouldn't the line read:
x += -glyph * fontSize * 0.001 * textHScale;
Edit: This would be consistent with the Type3 case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do that below ~L1433
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see!
I was just trying to find a possible reason for all the movement in the tests, or is that expected given the code changes?
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.22.172.223:8877/5c105a0b579537c/output.txt |
From: Bot.io (Linux)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.21.233.14:8877/172248752f6012d/output.txt |
From: Bot.io (Windows)FailedFull output at http://107.22.172.223:8877/5c105a0b579537c/output.txt Total script time: 23.73 mins
Image differences available at: http://107.22.172.223:8877/5c105a0b579537c/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux)FailedFull output at http://107.21.233.14:8877/172248752f6012d/output.txt Total script time: 26.20 mins
Image differences available at: http://107.21.233.14:8877/172248752f6012d/reftest-analyzer.html#web=eq.log |
Given that the movements in the tests are really small, they can probably be explained by the fact that the handling of some text As can also be seen in the test results, all the differences are not in text but some of them also affect other drawing operations. This would then be similar to #4683 (comment), meaning that the differences should be fine. Based on IRC discussions, I think that this PR should be good to go! /botio makeref |
From: Bot.io (Linux)ReceivedCommand cmd_makeref from @Snuffleupagus received. Current queue size: 1 Live output at: http://107.21.233.14:8877/f2f491f3689e003/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @Snuffleupagus received. Current queue size: 1 Live output at: http://107.22.172.223:8877/73e4b622d97f295/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/73e4b622d97f295/output.txt Total script time: 25.16 mins
|
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/f2f491f3689e003/output.txt Total script time: 26.13 mins
|
Refactors showText: split type3, remove showSpacedText
about 4% increase in speed of rendering:
https://gist.github.com/yurydelendik/998bda55ad2868ce73bb