Skip to content

Commit

Permalink
coretext: Get CFRange from core-foundation (#45)
Browse files Browse the repository at this point in the history
Remove a direct dependency on `core-foundation-sys` by getting `CFRange`
from a re-export in `core-foundation`.
  • Loading branch information
waywardmonkeys authored Apr 29, 2024
1 parent af18f3a commit 8664cca
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion fontique/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ wio = "0.2.2"
[target.'cfg(any(target_os="macos", target_os="ios"))'.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]
fontconfig-cache-parser = "0.2.0"
Expand Down
3 changes: 1 addition & 2 deletions fontique/src/backend/coretext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ use alloc::sync::Arc;
use hashbrown::HashMap;
use {
core_foundation::{
base::TCFType,
base::{CFRange, TCFType},
dictionary::CFDictionary,
string::{CFString, CFStringRef},
},
core_foundation_sys::base::CFRange,
core_text::{
font::{self, kCTFontSystemFontType, CTFont, CTFontRef, CTFontUIFontType},
font_descriptor,
Expand Down

0 comments on commit 8664cca

Please sign in to comment.