-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
406 additions
and
30 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#![allow(non_upper_case_globals)] | ||
|
||
#[cfg(feature = "CTFont")] | ||
impl crate::CTFontUIFontType { | ||
pub const kCTFontUIFontNone: Self = Self(u32::MAX); | ||
} | ||
|
||
#[cfg(feature = "CTRubyAnnotation")] | ||
impl crate::CTRubyAlignment { | ||
pub const kCTRubyAlignmentInvalid: Self = Self(u8::MAX); | ||
} | ||
|
||
#[cfg(feature = "CTRubyAnnotation")] | ||
impl crate::CTRubyOverhang { | ||
pub const kCTRubyOverhangInvalid: Self = Self(u8::MAX); | ||
} | ||
|
||
#[cfg(feature = "SFNTLayoutTypes")] | ||
pub const kMORTLigLastAction: core::ffi::c_int = 0x80000000u32 as _; | ||
|
||
#[cfg(feature = "SFNTLayoutTypes")] | ||
pub const kMORXCoverVertical: core::ffi::c_int = 0x80000000u32 as _; | ||
|
||
#[cfg(feature = "SFNTLayoutTypes")] | ||
pub const kKERXVertical: core::ffi::c_int = 0x80000000u32 as _; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
//! # Bindings to the `CoreText` framework | ||
//! | ||
//! See [Apple's docs][apple-doc] and [the general docs on framework crates][framework-crates] for more information. | ||
//! | ||
//! [apple-doc]: https://developer.apple.com/documentation/coretext/ | ||
//! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html | ||
#![no_std] | ||
#![cfg_attr(docsrs, feature(doc_auto_cfg))] | ||
// Update in Cargo.toml as well. | ||
#![doc(html_root_url = "https://docs.rs/objc2-core-text/0.2.2")] | ||
|
||
#[cfg(feature = "alloc")] | ||
extern crate alloc; | ||
|
||
#[cfg(feature = "std")] | ||
extern crate std; | ||
|
||
mod generated; | ||
mod invalid; | ||
#[cfg(feature = "SFNTLayoutTypes")] | ||
mod sfnt_lookup_header; | ||
|
||
#[allow(unused_imports, unreachable_pub)] | ||
pub use self::generated::*; | ||
#[cfg(feature = "SFNTLayoutTypes")] | ||
pub use self::invalid::{kKERXVertical, kMORTLigLastAction, kMORXCoverVertical}; | ||
#[cfg(feature = "SFNTLayoutTypes")] | ||
pub use self::sfnt_lookup_header::SFNTLookupFormatSpecificHeader; | ||
|
||
#[allow(dead_code)] | ||
pub(crate) type Fixed = i32; | ||
#[allow(dead_code)] | ||
pub(crate) type FourCharCode = u32; | ||
#[allow(dead_code)] | ||
pub(crate) type ConstStr255Param = *const core::ffi::c_char; | ||
#[allow(dead_code)] | ||
pub(crate) type UniChar = u16; |
Oops, something went wrong.