From 0827eb6f72622b7a1154ce5b81253e2f83e32cb0 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Mon, 29 Apr 2024 16:04:04 +0700 Subject: [PATCH] fontique: Enable builds for iOS and other Apple targets. (#47) Backend selection for iOS wasn't hooked up. Also added support for tvOS as it is the same as iOS here. --- fontique/Cargo.toml | 4 ++-- fontique/src/backend/mod.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fontique/Cargo.toml b/fontique/Cargo.toml index 6f83208e..0c442156 100644 --- a/fontique/Cargo.toml +++ b/fontique/Cargo.toml @@ -35,10 +35,10 @@ dwrote = "0.11.0" winapi = { version = "0.3.9", features = ["dwrite", "dwrite_1", "dwrite_3", "winnt", "unknwnbase", "libloaderapi", "winnls"] } wio = "0.2.2" -[target.'cfg(any(target_os="macos", target_os="ios"))'.dependencies] +[target.'cfg(target_vendor="apple")'.dependencies] core-text = "20.1.0" core-foundation = "0.9.4" -[target.'cfg(not(any(target_os="macos", target_os="ios", target_family="windows")))'.dependencies] +[target.'cfg(not(any(target_vendor="apple", target_family="windows")))'.dependencies] fontconfig-cache-parser = "0.2.0" roxmltree = "0.19.0" diff --git a/fontique/src/backend/mod.rs b/fontique/src/backend/mod.rs index 6a276f9b..6c2210c0 100644 --- a/fontique/src/backend/mod.rs +++ b/fontique/src/backend/mod.rs @@ -7,7 +7,7 @@ #[path = "dwrite.rs"] mod system; -#[cfg(all(feature = "system", target_os = "macos"))] +#[cfg(all(feature = "system", target_vendor = "apple"))] #[path = "coretext.rs"] mod system;