Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upgfx: Map `sans-serif` to Helvetica on Mac and DejaVu Sans on Linux. #10937
Conversation
highfive
commented
Apr 30, 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. |
|
|
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 -->
|
|
|
r? @metajack Added Android. |
|
@bors-servo r+ Reviewed 3 of 3 files at r1, 1 of 1 files at r2. Comments from Reviewable |
|
|
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 -->
|
|
highfive
commented
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 -->
|
|
highfive
commented
May 6, 2016
|
|
The input_selection_incremental tests use |
|
@pcwalton Can you investigate? |
highfive
commented
May 9, 2016
|
New code was committed to pull request. |
|
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 |
|
@bors-servo: r=metajack |
|
|
|
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.
|
|
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 -->
|
Hmm? Sorry, I meant the incremental input test, not the word break one. |
|
Weird. Reviewable didn't show changes to the other test. Why does the word break test now also fail on OS X? |
|
It was only accidentally passing before. It's a test of Indic script word breaking rules, and we don't display Indic fonts yet. |
|
|

pcwalton commentedApr 30, 2016
•
edited by larsbergstrom
This matches what I believe the OS native defaults to be.
Partially addresses #9487.
r? @metajack
cc @paulrouget
This change is