Skip to content

Don't map glyphs to certain problematic Thai/Lao Unicode locations (issue 5994) #5998

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

Merged
merged 1 commit into from
Jun 9, 2015
Merged

Don't map glyphs to certain problematic Thai/Lao Unicode locations (issue 5994) #5998

merged 1 commit into from
Jun 9, 2015

Conversation

Snuffleupagus
Copy link
Collaborator

This patch depends on PR #5990.

According to https://dxr.mozilla.org/mozilla-central/source/gfx/harfbuzz/src/hb-ot-shape-fallback.cc#38, certain Thai/Lao characters are treated as special by the font shaping code in Firefox.
Further down in that file, https://dxr.mozilla.org/mozilla-central/source/gfx/harfbuzz/src/hb-ot-shape-fallback.cc#216, the vertical position of glyphs is modified, which should thus explain why some glyphs end up in the wrong position in the PDF file.

Fixes #5994.

TODO: Add a reduced test-case (once I manage to create one that works).

@timvandermeij
Copy link
Contributor

/botio-windows preview

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/5004497bdf85edb/output.txt

@brendandahl
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Jun 5, 2015

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/9f6ca7f9c8dc6c2/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 5, 2015

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/d4e13b9f06f1bdf/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 5, 2015

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/d4e13b9f06f1bdf/output.txt

Total script time: 17.99 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Jun 5, 2015

From: Bot.io (Linux)


Failed

Full output at http://107.21.233.14:8877/9f6ca7f9c8dc6c2/output.txt

Total script time: 18.27 mins

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

Image differences available at: http://107.21.233.14:8877/9f6ca7f9c8dc6c2/reftest-analyzer.html#web=eq.log

…ssue 5994)

*This patch depends on PR 5990.*

According to https://dxr.mozilla.org/mozilla-central/source/gfx/harfbuzz/src/hb-ot-shape-fallback.cc#38, certain Thai/Lao characters are treated as special by the font shaping code in Firefox.
Further down in that file, https://dxr.mozilla.org/mozilla-central/source/gfx/harfbuzz/src/hb-ot-shape-fallback.cc#216, the vertical position of glyphs is modified, which should thus explain why some glyphs end up in the wrong position in the PDF file.

Fixes 5994.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Jun 5, 2015

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/525c0590e2f997d/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 5, 2015

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/dad164f19ea42df/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 5, 2015

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/525c0590e2f997d/output.txt

Total script time: 18.08 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Jun 5, 2015

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/dad164f19ea42df/output.txt

Total script time: 18.16 mins

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

@brendandahl
Copy link
Contributor

/botio makeref

@pdfjsbot
Copy link

pdfjsbot commented Jun 8, 2015

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/3647633833e0a61/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 8, 2015

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/7962fb5593f276d/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 8, 2015

From: Bot.io (Windows)


Failed

Full output at http://107.22.172.223:8877/3647633833e0a61/output.txt

Total script time: 1.32 mins

  • Lint: Passed
  • Make references: FAILED

@pdfjsbot
Copy link

pdfjsbot commented Jun 8, 2015

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/7962fb5593f276d/output.txt

Total script time: 18.24 mins

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

@brendandahl
Copy link
Contributor

/botio-windows makeref

@pdfjsbot
Copy link

pdfjsbot commented Jun 8, 2015

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/af54f5bf20cac70/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 8, 2015

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/af54f5bf20cac70/output.txt

Total script time: 18.09 mins

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

brendandahl added a commit that referenced this pull request Jun 9, 2015
Don't map glyphs to certain problematic Thai/Lao Unicode locations (issue 5994)
@brendandahl brendandahl merged commit c205b80 into mozilla:master Jun 9, 2015
@Snuffleupagus Snuffleupagus deleted the issue-5994 branch June 9, 2015 17:58
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.

Two Words Not Positioned Correctly in Nastaleeq Font
4 participants