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

gfx: Map `sans-serif` to Helvetica on Mac and DejaVu Sans on Linux. #10937

Merged
merged 1 commit into from May 9, 2016

Conversation

@pcwalton
Copy link
Contributor

pcwalton commented Apr 30, 2016

This matches what I believe the OS native defaults to be.

Partially addresses #9487.

r? @metajack
cc @paulrouget


This change is Reviewable

@highfive
Copy link

highfive commented Apr 30, 2016

warning Warning warning

  • These commits modify gfx code, but no tests are modified. Please consider adding a test!
@metajack
Copy link
Contributor

metajack commented May 1, 2016

@bors-servo r+

I'm curious why we aren't using font-config for this mapping since that seems to be its function. But this looks good.

@bors-servo
Copy link
Contributor

bors-servo commented May 1, 2016

📌 Commit c46c59a has been approved by metajack

@bors-servo
Copy link
Contributor

bors-servo commented May 1, 2016

Testing commit c46c59a with merge 727bf7a...

bors-servo added a commit that referenced this pull request May 1, 2016
gfx: Map `sans-serif` to Helvetica on Mac and DejaVu Sans on Linux.

This matches what I believe the OS native defaults to be.

Partially addresses #9487.

r? @metajack
cc @paulrouget

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10937)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 1, 2016

💔 Test failed - android

@pcwalton pcwalton force-pushed the pcwalton:mac-helvetica branch from c46c59a to bcdb53e May 2, 2016
@pcwalton
Copy link
Contributor Author

pcwalton commented May 2, 2016

r? @metajack

Added Android.

@metajack
Copy link
Contributor

metajack commented May 3, 2016

@bors-servo r+


Reviewed 3 of 3 files at r1, 1 of 1 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@bors-servo
Copy link
Contributor

bors-servo commented May 3, 2016

📌 Commit bcdb53e has been approved by metajack

@bors-servo
Copy link
Contributor

bors-servo commented May 3, 2016

Testing commit bcdb53e with merge 10f043d...

bors-servo added a commit that referenced this pull request May 3, 2016
gfx: Map `sans-serif` to Helvetica on Mac and DejaVu Sans on Linux.

This matches what I believe the OS native defaults to be.

Partially addresses #9487.

r? @metajack
cc @paulrouget

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10937)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 3, 2016

💔 Test failed - mac-rel-css

@highfive
Copy link

highfive commented May 3, 2016

  ▶ FAIL [expected PASS] /css-text-3_dev/html/word-break-normal-bo-000.htm
  └   → /css-text-3_dev/html/word-break-normal-bo-000.htm 4f0df934a67a74b4001e44416adbd0870ca317ff
/css-text-3_dev/html/reference/word-break-normal-bo-ref-000.htm 094fa50bd8bc5fc0817433414d3548933e9ed251
Testing 4f0df934a67a74b4001e44416adbd0870ca317ff == 094fa50bd8bc5fc0817433414d3548933e9ed251
@jdm
Copy link
Member

jdm commented May 3, 2016

In the reference both boxes look like the second one:
screen shot 2016-05-03 at 11 57 58 am

@pcwalton pcwalton force-pushed the pcwalton:mac-helvetica branch from bcdb53e to 27b2419 May 4, 2016
bors-servo added a commit that referenced this pull request May 6, 2016
gfx: Map `sans-serif` to Helvetica on Mac and DejaVu Sans on Linux.

This matches what I believe the OS native defaults to be.

Partially addresses #9487.

r? @metajack
cc @paulrouget

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10937)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 6, 2016

💔 Test failed - mac-rel-wpt

@highfive
Copy link

highfive commented May 6, 2016

  ▶ FAIL [expected PASS] /_mozilla/css/input_selection_incremental_a.html
  └   → /_mozilla/css/input_selection_incremental_a.html 77206f4ef5cf4394f733dae85b67e229dd8e8cc6
/_mozilla/css/input_selection_incremental_ref.html 91db21a5d4b097bc5bee206f0d4bd2c977457ff1
Testing 77206f4ef5cf4394f733dae85b67e229dd8e8cc6 == 91db21a5d4b097bc5bee206f0d4bd2c977457ff1
@jdm
Copy link
Member

jdm commented May 6, 2016

The input_selection_incremental tests use font-family: sans-serif and hasn't failed on any other PR before this. We'll need to address it before continuing to try to merge this.

@metajack
Copy link
Contributor

metajack commented May 6, 2016

@pcwalton Can you investigate?

@pcwalton pcwalton force-pushed the pcwalton:mac-helvetica branch from 27b2419 to 2ac9747 May 9, 2016
@highfive
Copy link

highfive commented May 9, 2016

New code was committed to pull request.

Roboto on Android.

This matches what I believe the OS native defaults to be.

Partially addresses #9487.
@pcwalton
Copy link
Contributor Author

pcwalton commented May 9, 2016

The test was failing because the line-height of Helvetica is different from that of Arial. Moving the font in the reference to an attribute on an inline-block to match the <input> element of the test fixed the problem. Note that the test was failing in Gecko for the same reason, and with this fix the test now passes in Gecko.

@pcwalton
Copy link
Contributor Author

pcwalton commented May 9, 2016

@bors-servo: r=metajack

@bors-servo
Copy link
Contributor

bors-servo commented May 9, 2016

📌 Commit 2ac9747 has been approved by metajack

@metajack
Copy link
Contributor

metajack commented May 9, 2016

So the test was only failing on one platform, and now it fails on all of them. Your comment seemed to imply we now pass.

Previously, bors-servo wrote…

📌 Commit 2ac9747 has been approved by metajack


Reviewed 1 of 1 files at r3.
Review status: 4 of 5 files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@bors-servo
Copy link
Contributor

bors-servo commented May 9, 2016

💡 This pull request was already approved, no need to approve it again.

  • There's another pull request that is currently being tested, blocking this pull request: #11090
@bors-servo
Copy link
Contributor

bors-servo commented May 9, 2016

Testing commit 2ac9747 with merge 180a981...

bors-servo added a commit that referenced this pull request May 9, 2016
gfx: Map `sans-serif` to Helvetica on Mac and DejaVu Sans on Linux.

This matches what I believe the OS native defaults to be.

Partially addresses #9487.

r? @metajack
cc @paulrouget

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10937)
<!-- Reviewable:end -->
@pcwalton
Copy link
Contributor Author

pcwalton commented May 9, 2016

Hmm? Sorry, I meant the incremental input test, not the word break one.

@metajack
Copy link
Contributor

metajack commented May 9, 2016

Weird. Reviewable didn't show changes to the other test. Why does the word break test now also fail on OS X?

@pcwalton
Copy link
Contributor Author

pcwalton commented May 9, 2016

It was only accidentally passing before. It's a test of Indic script word breaking rules, and we don't display Indic fonts yet.

@bors-servo
Copy link
Contributor

bors-servo commented May 9, 2016

@bors-servo bors-servo merged commit 2ac9747 into servo:master May 9, 2016
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.