gecko-dev/servo/components/gfx
Imanol Fernandez 30d5f7f68d servo: Merge #17141 - Ged rid of libfontconfig in Android (from MortimerGoro:android_fonts); r=mbrubeck
Libfontconfig dependency is causing huge startup times in Android (20 seconds on each page load!). On other platforms fontconfig caches are already available or can be prebuilt on installation scripts, but this can't be done on Android. Updating libfontconfig dependency doesn't fix the problem either.

This PR gets rid of libfontconfig in Android. It queries available fonts and variations from Android System font configuration files. Android doesn't provide an API to query system fonts until Android O (which is very far from the minimum API right now...)

---
<!-- 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 #16195 (github issue number if applicable).

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

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

Source-Repo: https://github.com/servo/servo
Source-Revision: f388c0ab1e4df8cbd94d58eb7657f36baaf813fe

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 402786ba71fef37e4d7c35c71256685885efd34e
2017-06-06 13:29:05 -07:00
..
display_list servo: Merge #16891 - Using TransformStyle::Preserve3D (from kvark:preserve3d); r=glennw,emilio 2017-05-17 20:38:14 -05:00
platform servo: Merge #17141 - Ged rid of libfontconfig in Android (from MortimerGoro:android_fonts); r=mbrubeck 2017-06-06 13:29:05 -07:00
text servo: Merge #16779 - [gfx] [layout] [style] Upgrade unicode-bidi to 0.3 (from behnam:bidi-0.3); r=mbrubeck 2017-05-22 23:06:07 -05:00
Cargo.toml servo: Merge #17141 - Ged rid of libfontconfig in Android (from MortimerGoro:android_fonts); r=mbrubeck 2017-06-06 13:29:05 -07:00
font.rs servo: Merge #16388 - Fix panic when font face name is not available (from Tiwalun:fix-freetype-panic); r=emilio 2017-04-16 10:50:20 -05:00
font_cache_thread.rs servo: Merge #16523 - Update WR (driver workaround, large clip mask fix, font index support) (from glennw:update-wr-drivers); r=metajack 2017-04-19 04:53:22 -05:00
font_context.rs servo: Merge #16702 - Use a custom arc in the style system (from bholley:custom_arc); r=emilio 2017-05-02 20:01:10 -05:00
font_template.rs servo: Merge #14043 - Update to string-cache 0.3 (from servo:string-cache-up); r=nox 2016-11-03 11:19:44 -05:00
lib.rs servo: Merge #17141 - Ged rid of libfontconfig in Android (from MortimerGoro:android_fonts); r=mbrubeck 2017-06-06 13:29:05 -07:00