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

Increase the font weight used for non-embedded ArialBlack fonts #6091

Merged
merged 1 commit into from
Jun 12, 2015
Merged

Increase the font weight used for non-embedded ArialBlack fonts #6091

merged 1 commit into from
Jun 12, 2015

Conversation

Snuffleupagus
Copy link
Collaborator

Currently non-embedded ArialBlack fonts are not rendered bold enough, compared to e.g. Adobe Reader.
The issue is that we set the font weight to bolder, but since that is actually relative to the font weight of the parent, the result is that there's no practical difference from just using bold.

This patch attempts to address that, by explicitly setting the font weight to the maximum value instead (see https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight).

Note: I expect one test "failure" in issue5801, which in this case is an improvement, since that PDF file uses ArialBlack.

Edit: Apparently this made no difference on the bots. But it does improve things locally for me, when testing on Windows with HWA on. However, with HWA switched off, the patch doesn't seem to help.
Hence it seems that whether or not this patch improves things, is connected with the HWA setting.

Currently non-embedded ArialBlack fonts are not rendered bold enough, compared to e.g. Adobe Reader.
The issue is that we set the font weight to `bolder`, but since that is actually relative to the font weight of the parent, the result is that there's no practical difference from just using `bold`.

This patch attempts to address that, by explicitly setting the font weight to the maximum value instead (see https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight).

*Note:* I expect one test "failure" in `issue5801`, which in this case is an improvement, since that PDF file uses ArialBlack.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Jun 6, 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/0c426bfa4792182/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 6, 2015

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/0c426bfa4792182/output.txt

Total script time: 17.92 mins

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

@Snuffleupagus
Copy link
Collaborator Author

/botio-windows test

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 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/5fbc362bb144a03/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2015

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/5fbc362bb144a03/output.txt

Total script time: 18.42 mins

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

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2015

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/1fa171c6c869714/output.txt

@timvandermeij
Copy link
Contributor

I can confirm that this looks better for me too on Windows 7 x64 with HWA on. Now it renders like Adobe Acrobat for me.

@yurydelendik
Copy link
Contributor

I expect one test "failure" in issue5801, which in this case is an improvement, since that PDF file uses ArialBlack.

Not failures (so for botio it's undetectable).

Looks good. Thanks.

yurydelendik added a commit that referenced this pull request Jun 12, 2015
Increase the font weight used for non-embedded ArialBlack fonts
@yurydelendik yurydelendik merged commit 0259448 into mozilla:master Jun 12, 2015
@Snuffleupagus Snuffleupagus deleted the bolder-ArialBlack branch June 12, 2015 15:56
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.

5 participants