Registry / utility / core-text

core-text

JSON →
library22.0.0rscratesunverified

Bindings to Apple's Core Text framework for text layout and font handling on macOS/iOS.

# Cargo.toml [dependencies] core-text = "22.0.0"
INSTALL
IMPORT
SIG · CORE-TEXT
C
core-text
utilityrustv22.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CTFont
use core_text::font::CTFont;

Creates a Core Text font object.

use core_text::font::CTFont; fn main() { let font = CTFont::new("Helvetica", 12.0); println!("Font created: {:?}", font); }
Debug
Known issues
gotchaRequires macOS or iOS target; not available on other platforms.
fix
Use conditional compilation with #[cfg(target_os = "macos")] or similar.
affects: >=0.0.0
Upgrade
Version history
22.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
core-text — cargo add core-text · libregistry