-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
XFA - Add the possibily to layout and measure text #13560
Conversation
calixteman
commented
Jun 14, 2021
- some containers doesn't always have their 2 dimensions and those dimensions re based on contents;
- so in order to measure text, we must get the glyph widths (for the xfa fonts) before starting the layout;
- implement a word-wrap algorithm;
- handle font change during text layout.
335636e
to
4f718fa
Compare
I'm assuming this is going to fix #13500? |
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @brendandahl received. Current queue size: 0 Live output at: http://54.67.70.0:8877/024157c707184a9/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @brendandahl received. Current queue size: 0 Live output at: http://3.101.106.178:8877/44b592f323a5d15/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/024157c707184a9/output.txt Total script time: 2.52 mins
Image differences available at: http://54.67.70.0:8877/024157c707184a9/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/44b592f323a5d15/output.txt Total script time: 3.54 mins
Image differences available at: http://3.101.106.178:8877/44b592f323a5d15/reftest-analyzer.html#web=eq.log |
4f718fa
to
304bea8
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @brendandahl received. Current queue size: 0 Live output at: http://54.67.70.0:8877/c0bedb569dd739b/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @brendandahl received. Current queue size: 0 Live output at: http://3.101.106.178:8877/74415f0a80f3f8e/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/c0bedb569dd739b/output.txt Total script time: 27.19 mins
Image differences available at: http://54.67.70.0:8877/c0bedb569dd739b/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/74415f0a80f3f8e/output.txt Total script time: 30.81 mins
Image differences available at: http://3.101.106.178:8877/74415f0a80f3f8e/reftest-analyzer.html#web=eq.log |
There seems to be a regression at least in firefox-hsbc_closure-page1. |
304bea8
to
4e75b6f
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.67.70.0:8877/177fa5d3b897f54/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 1 Live output at: http://3.101.106.178:8877/4c16fe39c8af849/output.txt |
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 1 Live output at: http://54.67.70.0:8877/d3a567ff2d330b5/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 1 Live output at: http://3.101.106.178:8877/e67cda9f6da3d13/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/177fa5d3b897f54/output.txt Total script time: 26.96 mins
Image differences available at: http://54.67.70.0:8877/177fa5d3b897f54/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/4c16fe39c8af849/output.txt Total script time: 30.92 mins
Image differences available at: http://3.101.106.178:8877/4c16fe39c8af849/reftest-analyzer.html#web=eq.log |
4e75b6f
to
e8e88d5
Compare
There is still an issue with |
/botio test |
There's still a minor issue ("IBAN:" the ":" is on the following line) |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/e67cda9f6da3d13/output.txt Total script time: 30.99 mins
Image differences available at: http://3.101.106.178:8877/e67cda9f6da3d13/reftest-analyzer.html#web=eq.log |
I don't understand why the issue is still there ( |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/9cd47a464f4a55c/output.txt Total script time: 26.98 mins
Image differences available at: http://54.67.70.0:8877/9cd47a464f4a55c/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/85cb04cfc9308b6/output.txt Total script time: 31.47 mins
Image differences available at: http://3.101.106.178:8877/85cb04cfc9308b6/reftest-analyzer.html#web=eq.log |
Finally tests are ok... |
e8e88d5
to
c8a493f
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.67.70.0:8877/17e1eb3dd9e005a/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://3.101.106.178:8877/160bd29fb06f467/output.txt |
- some containers doesn't always have their 2 dimensions and those dimensions re based on contents; - so in order to measure text, we must get the glyph widths (for the xfa fonts) before starting the layout; - implement a word-wrap algorithm; - handle font change during text layout.
c8a493f
to
8eeb7ab
Compare
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/17e1eb3dd9e005a/output.txt Total script time: 27.19 mins
Image differences available at: http://54.67.70.0:8877/17e1eb3dd9e005a/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/160bd29fb06f467/output.txt Total script time: 30.29 mins
Image differences available at: http://3.101.106.178:8877/160bd29fb06f467/reftest-analyzer.html#web=eq.log |
/botio unittest |
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @calixteman received. Current queue size: 0 Live output at: http://54.67.70.0:8877/e95ad44d312a2eb/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @calixteman received. Current queue size: 0 Live output at: http://3.101.106.178:8877/eaacfbaeb2c1a38/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/e95ad44d312a2eb/output.txt Total script time: 3.88 mins
|
From: Bot.io (Windows)SuccessFull output at http://3.101.106.178:8877/eaacfbaeb2c1a38/output.txt Total script time: 5.40 mins
|
/botio makeref |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 0 Live output at: http://54.67.70.0:8877/e677da5b09a9d75/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 1 Live output at: http://3.101.106.178:8877/aa321c218461a20/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/e677da5b09a9d75/output.txt Total script time: 23.60 mins
|
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/aa321c218461a20/output.txt Total script time: 27.33 mins
|