aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-variables-1_dev
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-01-18 16:09:51 -0800
committerGitHub <noreply@github.com>2017-01-18 16:09:51 -0800
commit1a7404e38c0f0e9c58487299956bec78589191c7 (patch)
treef9e3c1f192fdcba7a4d874e503f7d710fc58512e /tests/wpt/css-tests/css-variables-1_dev
parent0cca7ca85dc611952eeabd5b799e6c933dab7557 (diff)
parenta9611c31a7b0696acbf4876f57008afb37612d59 (diff)
downloadservo-1a7404e38c0f0e9c58487299956bec78589191c7.tar.gz
servo-1a7404e38c0f0e9c58487299956bec78589191c7.zip
Auto merge of #15096 - vvuk:custom-font-files, r=emilio
Implement downloadable fonts on Windows This PR implements downloadable font support for Servo. It depends on new changes in webrender and dwrote, and adds a dependency on the `truetype` crate for pulling out basic font information. The original DirectWrite API does not provide an easy way to query font information direct from a `FontFace` (which is what you create from a `FontFile`). There are new DirectWrite APIs starting with Windows 10 that allow for this, but they are Win 10+ only, and `winapi-rs` does not yet have bindings for those versions of the interfaces (specificially, `IDirectWriteFontFace3`). The way to do this with DW is to go through a lot of pain in creating a custom collection and enumerator, add your font to your custom collection, then query the collection for its properties. Instead, we just parse the truetype tables directly to pull out the few bits of information that we need. The `truetype` crate is ok, but I discovered some bugs (an update needs to get pushed to crates.io before this will build). It might be more worthwhile to just implement the tiny bit of truetype parsing that we need ourselves in Servo. I'm guessing there are existing tests for downloadable fonts... --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/15096) <!-- Reviewable:end -->
Diffstat (limited to 'tests/wpt/css-tests/css-variables-1_dev')
0 files changed, 0 insertions, 0 deletions