Skip to content
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

Add a heuristic to scale even single-char text, when the horizontal/vertical scaling differs significantly (issue 11713) #11727

Merged
merged 1 commit into from Apr 7, 2020

Conversation

Snuffleupagus
Copy link
Collaborator

At this point in time, compared to when the "ignore single-char" code was added, we should generally be doing a much better job of combining text into as few chunks as possible.
However, there's still bad cases where we're not able to combine text as much as one would like, which is why I'm not proposing to simply measure/scale all text. Instead this patch will to only measure/scale single-char text in cases where the horizontal/vertical scale is off significantly, since that's were you'd expect bad text-selection behaviour otherwise.

Note that most of the movement caused by this patch is with Type3 fonts, which is a somewhat special font type and one where our current text-selection behaviour is probably the least good.

Fixes #11713

@Snuffleupagus Snuffleupagus changed the title Add a heuristic to scale even single-char text, when the horizontal/verical scaling differs significantly (issue 11713) Add a heuristic to scale even single-char text, when the horizontal/vertical scaling differs significantly (issue 11713) Mar 22, 2020
@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/8ff60b721cec1b1/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/99b2ddbcc3cfb97/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/8ff60b721cec1b1/output.txt

Total script time: 19.77 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.67.70.0:8877/8ff60b721cec1b1/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/99b2ddbcc3cfb97/output.txt

Total script time: 60.00 mins

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/a28a955b519a2cc/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/1573370c8979132/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/a28a955b519a2cc/output.txt

Total script time: 19.62 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.67.70.0:8877/a28a955b519a2cc/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/1573370c8979132/output.txt

Total script time: 25.29 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.215.176.217:8877/1573370c8979132/reftest-analyzer.html#web=eq.log

…ertical scaling differs significantly (issue 11713)

At this point in time, compared to when the "ignore single-char" code was added, we *should* generally be doing a much better job of combining text into as few chunks as possible.
However, there's still bad cases where we're not able to combine text as much as one would like, which is why I'm *not* proposing to simply measure/scale all text. Instead this patch will to only measure/scale single-char text in cases where the horizontal/vertical scale is off significantly, since that's were you'd expect bad text-selection behaviour otherwise.

Note that most of the movement caused by this patch is with Type3 fonts, which is a somewhat special font type and one where our current text-selection behaviour is probably the least good.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Apr 6, 2020

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/1c74e5065aeb03e/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Apr 6, 2020

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/72902861493165d/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Apr 6, 2020

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/1c74e5065aeb03e/output.txt

Total script time: 19.69 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.67.70.0:8877/1c74e5065aeb03e/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Apr 6, 2020

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/72902861493165d/output.txt

Total script time: 24.97 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.215.176.217:8877/72902861493165d/reftest-analyzer.html#web=eq.log

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Apr 7, 2020

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/dd11396f8517b4f/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Apr 7, 2020

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/dd11396f8517b4f/output.txt

Total script time: 2.54 mins

Published

@timvandermeij timvandermeij merged commit 4fe9260 into mozilla:master Apr 7, 2020
@timvandermeij
Copy link
Contributor

Seems to work nicely. Thanks!

/botio makeref

@pdfjsbot
Copy link

pdfjsbot commented Apr 7, 2020

From: Bot.io (Linux m4)


Received

Command cmd_makeref from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/5f73755419684e9/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Apr 7, 2020

From: Bot.io (Windows)


Received

Command cmd_makeref from @timvandermeij received. Current queue size: 1

Live output at: http://54.215.176.217:8877/c3975c9a8d2635e/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Apr 7, 2020

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/5f73755419684e9/output.txt

Total script time: 18.17 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@pdfjsbot
Copy link

pdfjsbot commented Apr 7, 2020

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/c3975c9a8d2635e/output.txt

Total script time: 23.23 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@Snuffleupagus Snuffleupagus deleted the issue-11713 branch April 8, 2020 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect selection with enlarged text
3 participants