From b1f07e88a3c5394859cad0f8fbefde49ae5b7315 Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Thu, 28 Nov 2024 18:33:10 +0100 Subject: [PATCH] use default features of font loader on macos --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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