bors-servo
af48b42c57
Auto merge of #17706 - glennw:linux-fonts, r=stshine,emilio
...
Improve font layout in Linux / Freetype platforms.
This patch contains two small changes:
* Fix the font size calculation that is passed to Freetype. This
now matches exactly how Webrender and Gecko calculate font size
to pass to layout.
* Enable light hinting by default for fonts when using Freetype.
We should make this configurable in the future, but this is a
better default than no hinting (and matches what most Linux
distros default to).
These two changes (along with the pending WR update) fix a lot
of the font layout issues on Linux. There is still at least one
remaining issue with hidpi displays on Linux that will be fixed
in a follow up patch.
<!-- 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/17706 )
<!-- Reviewable:end -->
2017-07-13 16:13:41 -07:00
..
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2017-07-13 13:50:03 +02:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-12-15 23:04:08 +03:00
2017-04-20 12:18:41 +02:00
2016-12-15 23:04:08 +03:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2017-02-23 14:15:20 +10:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2017-05-16 11:09:40 +10:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2017-02-06 22:38:29 +01:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2016-01-04 21:46:52 +00:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2016-01-04 21:46:52 +00:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00
2017-02-06 22:38:29 +01:00