Skip to content

Commit

Permalink
fontique: Enable builds for iOS and tvOS
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Apr 28, 2024
1 parent ddb0c6e commit 9fa6eb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fontique/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ 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(any(target_os="macos", target_os="ios", target_os="tvos"))'.dependencies]
core-text = "20.1.0"
core-foundation = "0.9.4"
core-foundation-sys = "0.8.6"

[target.'cfg(not(any(target_os="macos", target_os="ios", target_family="windows")))'.dependencies]
[target.'cfg(not(any(target_os="macos", target_os="ios", target_os="tvos", target_family="windows")))'.dependencies]
anyhow = "1.0.82"
bytemuck = { version = "1.15.0", features = ["derive"] }
fontconfig-cache-parser = "0.2.0"
Expand Down
5 changes: 4 additions & 1 deletion fontique/src/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
#[path = "dwrite.rs"]
mod system;

#[cfg(all(feature = "system", target_os = "macos"))]
#[cfg(all(
feature = "system",
any(target_os = "macos", target_os = "ios", target_os = "tvos")
))]
#[path = "coretext.rs"]
mod system;

Expand Down

0 comments on commit 9fa6eb3

Please sign in to comment.