Skip to content

Always include the last-resort font - #11303

Merged
bors-servo merged 1 commit into
servo:masterfrom
mbrubeck:last-resort
May 24, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
mbrubeck:last-resort

Conversation

@mbrubeck

@mbrubeck mbrubeck commented May 20, 2016 •

Copy link
Copy Markdown
Contributor

This is used as a fallback for any characters that don't have glyphs in the specified font. Without this, per-glyph font fallback doesn't work because the FontGroup always contains only one font. Fixes missing glyphs on many pages on my Linux box.

As a follow-up, we should probably have a smarter strategy for finding fallback fonts, possibly varying by script. (Currently we just have a few hard-coded family names.)

r? @glennw


This change is Reviewable

@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify gfx code, but no tests are modified. Please consider adding a test!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label May 20, 2016
@mbrubeck

Copy link
Copy Markdown
Contributor Author

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 394d001 with merge 96eb2fa...

bors-servo pushed a commit that referenced this pull request May 20, 2016
Always include the last-resort font

This is used as a fallback for any characters that don't have glyphs in the specified font.  Without this, per-glyph font fallback doesn't work because the FontGroup always contains only one font.  Fixes missing glyphs on many pages on my Linux box.

As a follow-up, we should probably have a smarter strategy for finding fallback fonts, possibly varying by script.  (Currently we just have a few hard-coded family names.)

r? @glennw
@gsnedders

Copy link
Copy Markdown
Contributor

This hopefully fixes (I believe currently disabled) #7625.

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-css

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label May 20, 2016
@highfive

Copy link
Copy Markdown
  ▶ FAIL [expected PASS] /css-text-3_dev/html/word-break-break-all-007.htm
  └   → /css-text-3_dev/html/word-break-break-all-007.htm 5b3297c268e36789d60a5ca3f13401e85bf79c42
/css-text-3_dev/html/reference/word-break-break-all-ref-007.htm 4f93be4ca67232a0ae6029ef9b9973299043f329
Testing 5b3297c268e36789d60a5ca3f13401e85bf79c42 == 4f93be4ca67232a0ae6029ef9b9973299043f329

  ▶ FAIL [expected PASS] /css-text-3_dev/html/word-break-normal-hi-000.htm
  └   → /css-text-3_dev/html/word-break-normal-hi-000.htm 6dc17ff1a29f6b7fd4567f6e500a81cd34726300
/css-text-3_dev/html/reference/word-break-normal-hi-ref-000.htm 59163d138a4b9ece1e0fff504bceb3d67c6ffce5
Testing 6dc17ff1a29f6b7fd4567f6e500a81cd34726300 == 59163d138a4b9ece1e0fff504bceb3d67c6ffce5

  ▶ FAIL [expected PASS] /css21_dev/html4/block-in-inline-003.htm
  └   → /css21_dev/html4/block-in-inline-003.htm 577e0eebc4978fee7d38a0faebae260a4c056539
/css21_dev/html4/reference/block-in-inline-003-ref.htm a59e5251f984bb8e3281b0d4a20291eb6a61e69c
Testing 577e0eebc4978fee7d38a0faebae260a4c056539 == a59e5251f984bb8e3281b0d4a20291eb6a61e69c

  ▶ FAIL [expected PASS] /css21_dev/html4/block-in-inline-008.htm
  └   → /css21_dev/html4/block-in-inline-008.htm fe01686fb15380cd36adeb6c2bd04eff92e58340
/css21_dev/html4/reference/block-in-inline-008-ref.htm caaa5b82a0962ceebaeb4fd1a837c4303e114195
Testing fe01686fb15380cd36adeb6c2bd04eff92e58340 == caaa5b82a0962ceebaeb4fd1a837c4303e114195

  ▶ PASS [expected FAIL] /css21_dev/html4/counter-increment-applies-to-008.htm

  ▶ PASS [expected FAIL] /css21_dev/html4/counter-reset-applies-to-008.htm

  ▶ FAIL [expected PASS] /css21_dev/html4/list-style-applies-to-008.htm
  └   → /css21_dev/html4/list-style-applies-to-008.htm f072c39389e94e4699261261b3d7fdb59f34b815
/css21_dev/html4/reference/single_square_list_marker.htm 8f7182233402a2c0b5d859886871cf776e900e9d
Testing f072c39389e94e4699261261b3d7fdb59f34b815 == 8f7182233402a2c0b5d859886871cf776e900e9d

  ▶ FAIL [expected PASS] /css21_dev/html4/list-style-type-applies-to-008.htm
  └   → /css21_dev/html4/list-style-type-applies-to-008.htm f072c39389e94e4699261261b3d7fdb59f34b815
/css21_dev/html4/reference/single_square_list_marker.htm 8f7182233402a2c0b5d859886871cf776e900e9d
Testing f072c39389e94e4699261261b3d7fdb59f34b815 == 8f7182233402a2c0b5d859886871cf776e900e9d

@mbrubeck mbrubeck removed the S-awaiting-review There is new code that needs to be reviewed. label May 20, 2016
@mbrubeck

Copy link
Copy Markdown
Contributor Author

▶ FAIL [expected PASS] /css-text-3_dev/html/word-break-break-all-007.htm
▶ FAIL [expected PASS] /css-text-3_dev/html/word-break-normal-hi-000.htm

I think these were passing accidentally before; we are (and were) rendering them with fonts that don’t contain the required glyphs.

▶ FAIL [expected PASS] /css21_dev/html4/block-in-inline-003.htm
▶ FAIL [expected PASS] /css21_dev/html4/block-in-inline-008.htm
▶ FAIL [expected PASS] /css21_dev/html4/list-style-applies-to-008.htm
▶ FAIL [expected PASS] /css21_dev/html4/list-style-type-applies-to-008.htm

These all look like they’re affected by the same vertical positioning bug, like maybe an empty line was inserted where it shouldn’t be.

Also, mac-rel-wpt:

Ran 4838 tests finished in 1012.0 seconds.
  • 4837 ran as expected. 894 tests skipped.
  • 1 tests failed unexpectedly

Tests with unexpected results:
  ▶ FAIL [expected PASS] /_mozilla/css/per_glyph_font_fallback_a.html

Looking at the reftest analyzer, the glyph fallback is working correctly but the line height is different in the test versus the reference; the patch must have changed which font metrics are being used.

On the Linux builder there were even more affected tests:

  • test-css: 58 tests failed unexpectedly and 7 tests passed unexpectedly
  • test-wpt: 6 tests failed unexpectedly

All of these seem to be affected by the same line-height issue, except /_mozilla/css/pre_with_tab.html which has an issue with horizontal spacing instead. I can reproduce the Linux failures locally. I suspect all the behavior changes have the same root cause: some sort of change in which font metrics are used when fallback is triggered.

@highfive

Copy link
Copy Markdown

New code was committed to pull request.

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels May 20, 2016
@mbrubeck

Copy link
Copy Markdown
Contributor Author

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 7400a23 with merge 7f602be...

bors-servo pushed a commit that referenced this pull request May 20, 2016
Always include the last-resort font

This is used as a fallback for any characters that don't have glyphs in the specified font.  Without this, per-glyph font fallback doesn't work because the FontGroup always contains only one font.  Fixes missing glyphs on many pages on my Linux box.

As a follow-up, we should probably have a smarter strategy for finding fallback fonts, possibly varying by script.  (Currently we just have a few hard-coded family names.)

r? @glennw

<!-- 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/11303)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-css

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label May 20, 2016
@highfive

highfive commented May 20, 2016 •

Copy link
Copy Markdown
  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-014.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-015.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-016.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-018.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-019.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-020.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-023.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-025.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-027.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-028.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-029.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-031.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-032.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-033.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-034.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-035.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-037.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-057.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-119.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-120.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-122.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-123.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-124.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-125.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-128.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-131.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-132.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-133.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-136.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-137.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-138.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-139.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-142.htm

  ▶ PASS [expected FAIL] /css-text-3_dev/html/css3-text-line-break-opclns-163.htm

  ▶ FAIL [expected PASS] /css-text-3_dev/html/word-break-normal-hi-000.htm
  └   → /css-text-3_dev/html/word-break-normal-hi-000.htm 6dc17ff1a29f6b7fd4567f6e500a81cd34726300
/css-text-3_dev/html/reference/word-break-normal-hi-ref-000.htm 59163d138a4b9ece1e0fff504bceb3d67c6ffce5
Testing 6dc17ff1a29f6b7fd4567f6e500a81cd34726300 == 59163d138a4b9ece1e0fff504bceb3d67c6ffce5

@mbrubeck

Copy link
Copy Markdown
Contributor Author

Also, mac-rel-wpt:

  ▶ FAIL [expected PASS] /_mozilla/css/per_glyph_font_fallback_a.html

and linux-rel-css:

Ran 9969 tests finished in 952.0 seconds.
  • 9721 ran as expected. 129 tests skipped.
  • 13 tests failed unexpectedly
  • 235 tests passed unexpectedly

@highfive

Copy link
Copy Markdown

New code was committed to pull request.

@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label May 20, 2016
@mbrubeck

Copy link
Copy Markdown
Contributor Author

@bors-servo try

  • Now with over 250 tests newly marked passing!

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 63c91c9 with merge 04d14d3...

bors-servo pushed a commit that referenced this pull request May 20, 2016
Always include the last-resort font

This is used as a fallback for any characters that don't have glyphs in the specified font.  Without this, per-glyph font fallback doesn't work because the FontGroup always contains only one font.  Fixes missing glyphs on many pages on my Linux box.

As a follow-up, we should probably have a smarter strategy for finding fallback fonts, possibly varying by script.  (Currently we just have a few hard-coded family names.)

r? @glennw

<!-- 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/11303)
<!-- Reviewable:end -->
@mbrubeck

mbrubeck commented May 20, 2016 •

Copy link
Copy Markdown
Contributor Author

Looks like there are still thirteen css21_dev tests failing on Linux only, all because of vertical alignment spacing issues involving Ahem.ttf.

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label May 23, 2016
@mbrubeck

Copy link
Copy Markdown
Contributor Author

@bors-servo r=pcwalton

  • per_glyph_font_fallback_a.html is a broken test (failing in Gecko too). Pushed a better fix for it.

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 625b0b8 has been approved by pcwalton

@highfive highfive assigned pcwalton and unassigned larsbergstrom May 23, 2016
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels May 23, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 625b0b8 with merge f92743a...

bors-servo pushed a commit that referenced this pull request May 23, 2016
Always include the last-resort font

This is used as a fallback for any characters that don't have glyphs in the specified font.  Without this, per-glyph font fallback doesn't work because the FontGroup always contains only one font.  Fixes missing glyphs on many pages on my Linux box.

As a follow-up, we should probably have a smarter strategy for finding fallback fonts, possibly varying by script.  (Currently we just have a few hard-coded family names.)

r? @glennw

<!-- 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/11303)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-wpt

@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label May 23, 2016
@highfive

Copy link
Copy Markdown
  ▶ FAIL [expected PASS] /_mozilla/css/per_glyph_font_fallback_a.html
  └   → /_mozilla/css/per_glyph_font_fallback_a.html dd41b5e5ff664d2f87d0e6a71855db37c6660acf
/_mozilla/css/per_glyph_font_fallback_ref.html 4ca8fa71d4b1b8b8cbf8d86fcc7a668340baae69
Testing dd41b5e5ff664d2f87d0e6a71855db37c6660acf == 4ca8fa71d4b1b8b8cbf8d86fcc7a668340baae69

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label May 23, 2016
This is used as a fallback for any characters that don't have glyphs in the
specified font.
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels May 24, 2016
@highfive

Copy link
Copy Markdown

New code was committed to pull request.

@mbrubeck

Copy link
Copy Markdown
Contributor Author

@bors-servo r=pcwalton

  • Pushed a better fix for the broken test, actually tested on Mac locally.

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit e588943 has been approved by pcwalton

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels May 24, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit e588943 with merge aa9f50a...

bors-servo pushed a commit that referenced this pull request May 24, 2016
Always include the last-resort font

This is used as a fallback for any characters that don't have glyphs in the specified font.  Without this, per-glyph font fallback doesn't work because the FontGroup always contains only one font.  Fixes missing glyphs on many pages on my Linux box.

As a follow-up, we should probably have a smarter strategy for finding fallback fonts, possibly varying by script.  (Currently we just have a few hard-coded family names.)

r? @glennw

<!-- 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/11303)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows

@bors-servo
bors-servo merged commit e588943 into servo:master May 24, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label May 24, 2016
@mbrubeck
mbrubeck deleted the last-resort branch May 2, 2017 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants