From 0210a43196611c7c9216e923e3e11c6fe1b98876 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Fri, 10 Jul 2020 01:24:55 +0300 Subject: Fail compilation if Fontconfig is not installed on Linux/BSD Statically linking Fontconfig was leading to slow startup and various errors, so forcing the use of system's library. --- font/Cargo.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'font') diff --git a/font/Cargo.toml b/font/Cargo.toml index 6b5825c4..89696a47 100644 --- a/font/Cargo.toml +++ b/font/Cargo.toml @@ -13,8 +13,8 @@ foreign-types = "0.5" log = "0.4" [target.'cfg(not(any(target_os = "macos", windows)))'.dependencies] -servo-fontconfig = "0.5.0" -freetype-rs = "0.25" +servo-fontconfig = "0.5.1" +freetype-rs = "0.26" [target.'cfg(target_os = "macos")'.dependencies] cocoa = "0.20.1" @@ -26,3 +26,6 @@ core-foundation-sys = "0.7" [target.'cfg(windows)'.dependencies] dwrote = { version = "0.11" } winapi = { version = "0.3", features = ["impl-default"] } + +[features] +force_system_fontconfig = ["servo-fontconfig/force_system_lib"] -- cgit v1.2.3