diff --git a/Cargo.toml b/Cargo.toml index 46896ed..867a007 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,11 @@ version = "0.30" features = ["rwh_05"] default-features = true -[dependencies.font-kit] +[target.'cfg(target_os = "linux")'.dependencies.font-kit] version = "0.14.2" features = ["loader-freetype-default", "source-fontconfig-dlopen"] default-features = false + +[target.'cfg(target_os = "macos")'.dependencies.font-kit] +version = "0.14.2" +default-features = true