diff options
author | Imanol Fernandez <mortimergoro@gmail.com> | 2017-06-02 18:40:08 +0200 |
---|---|---|
committer | Imanol Fernandez <mortimergoro@gmail.com> | 2017-06-02 18:40:08 +0200 |
commit | 19fbec9d546a31af072b9552eecc0541dc7b36a8 (patch) | |
tree | 7ff2f560daebafc768be94939ed52d69b54bc992 /components/gfx/platform/mod.rs | |
parent | fa158a78b6f976156a93bcccae3fdd27046faf50 (diff) | |
download | servo-19fbec9d546a31af072b9552eecc0541dc7b36a8.tar.gz servo-19fbec9d546a31af072b9552eecc0541dc7b36a8.zip |
Ged rid of libfontconfig in Android. Query available fonts from Android system font configuration files.
Diffstat (limited to 'components/gfx/platform/mod.rs')
-rw-r--r-- | components/gfx/platform/mod.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/components/gfx/platform/mod.rs b/components/gfx/platform/mod.rs index 9a505c14284..897fbe9e8d3 100644 --- a/components/gfx/platform/mod.rs +++ b/components/gfx/platform/mod.rs @@ -29,8 +29,14 @@ mod freetype { pub mod font; pub mod font_context; - #[cfg(any(target_os = "linux", target_os = "android"))] + #[cfg(target_os = "linux")] pub mod font_list; + #[cfg(target_os = "android")] + mod android { + pub mod font_list; + } + #[cfg(target_os = "android")] + pub use self::android::font_list; #[cfg(any(target_os = "linux", target_os = "android"))] pub mod font_template; |