Skip to content

Commit 0827eb6

Browse files
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.
1 parent 8664cca commit 0827eb6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fontique/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ dwrote = "0.11.0"
3535
winapi = { version = "0.3.9", features = ["dwrite", "dwrite_1", "dwrite_3", "winnt", "unknwnbase", "libloaderapi", "winnls"] }
3636
wio = "0.2.2"
3737

38-
[target.'cfg(any(target_os="macos", target_os="ios"))'.dependencies]
38+
[target.'cfg(target_vendor="apple")'.dependencies]
3939
core-text = "20.1.0"
4040
core-foundation = "0.9.4"
4141

42-
[target.'cfg(not(any(target_os="macos", target_os="ios", target_family="windows")))'.dependencies]
42+
[target.'cfg(not(any(target_vendor="apple", target_family="windows")))'.dependencies]
4343
fontconfig-cache-parser = "0.2.0"
4444
roxmltree = "0.19.0"

fontique/src/backend/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#[path = "dwrite.rs"]
88
mod system;
99

10-
#[cfg(all(feature = "system", target_os = "macos"))]
10+
#[cfg(all(feature = "system", target_vendor = "apple"))]
1111
#[path = "coretext.rs"]
1212
mod system;
1313

0 commit comments

Comments
 (0)