Skip to content

Fix Windows UI and font squishing - #16034

Merged
bors-servo merged 2 commits into
servo:masterfrom
sophiajt:fix_font
Mar 21, 2017
Merged

bors-servo merged 2 commits into
servo:masterfrom
sophiajt:fix_font

Conversation

@sophiajt

@sophiajt sophiajt commented Mar 20, 2017 •

Copy link
Copy Markdown

This PR:


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #__ (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because change are to UI/visual results of font drawing

This change is Reviewable

@highfive

Copy link
Copy Markdown

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @KiChjang (or someone else) soon.

@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 Mar 20, 2017
@samlh

samlh commented Mar 20, 2017

Copy link
Copy Markdown
Contributor

These changes do not require tests because change are to UI/visual results of font drawing

Hrm, isn't that something a reftest could cover?

Perhaps more problematic - are tests being run on Windows in CI?

@jdm

jdm commented Mar 20, 2017

Copy link
Copy Markdown
Member

We do not run any tests on our windows builders yet.

@sophiajt

Copy link
Copy Markdown
Author

Yeah, I definitely think we could flesh out the testing a bit, but I'm of the mind of "let's get Windows stood up and in the nightlies... then when we have more eyes on it, we'll have people help us keep pushing quality forward"

Seeing the higher order bit being just getting Windows out there.

@nox

nox commented Mar 21, 2017

Copy link
Copy Markdown
Contributor

@jonathandturner I removed the mention of @codec-abc in the PR description because such mentions then trigger an email notification every time the merge commit is pushed to new GH repositories, please don't mention in there and only in comments instead.

@KiChjang

Copy link
Copy Markdown
Contributor

r? @metajack or someone who knows windows stuff

@highfive highfive assigned metajack and unassigned KiChjang Mar 21, 2017
@metajack

Copy link
Copy Markdown
Collaborator

@bors-servo r+

I was sad there was no documentation on struct FontMetrics in gfx/font.rs. Could you file this?

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit f38bab4 has been approved by metajack

@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 Mar 21, 2017
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit f38bab4 with merge cea1760...

bors-servo pushed a commit that referenced this pull request Mar 21, 2017
Fix Windows UI and font squishing

<!-- Please describe your changes on the following line: -->

This PR:

* updates the browserhtml dep (fixes #15255)
* updates the Windows font metric calculation (fixes #15698, based on codec-abc #15937 (comment))
* may address #15933.  With this PR, I was not able to repro

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because change are to UI/visual results of font drawing

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

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

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-msvc-dev
Approved by: metajack
Pushing cea1760 to master...

@bors-servo
bors-servo merged commit f38bab4 into servo:master Mar 21, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Mar 21, 2017
@metajack

Copy link
Copy Markdown
Collaborator

@jonathandturner Thanks for knocking these out!

@hinaria hinaria mentioned this pull request Jun 15, 2017
2 tasks done
bors-servo pushed a commit that referenced this pull request Jun 15, 2017
windows: fix line height handling

hi there!

on windows, this change properly scales a font's line height by its size. before, this was not being done at all, which resulted in super ugly text at larger em sizes.

![demonstration](https://user-images.githubusercontent.com/975570/27185401-8e27023a-5228-11e7-8475-9e4223730d25.png)

i'm not sure what to do about tests: i wasn't able to find any similar tests, and the previous change (#16034) did not include any tests either.

i believe this also solves #16476.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17340)
<!-- Reviewable:end -->
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.

Windows Servo renders reddit text squished Windows servo UI missing elements

8 participants