summaryrefslogtreecommitdiffstats
path: root/font
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2020-07-10 01:24:55 +0300
committerGitHub <noreply@github.com>2020-07-10 01:24:55 +0300
commit0210a43196611c7c9216e923e3e11c6fe1b98876 (patch)
treeef344c18000e6c9dc99668a58f4c56dce76221e8 /font
parent46c0f352c40ecb68653421cb178a297acaf00c6d (diff)
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.
Diffstat (limited to 'font')
-rw-r--r--font/Cargo.toml7
1 files changed, 5 insertions, 2 deletions
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"]