#[repr(transparent)]pub struct CTFontManagerError(pub CFIndex);CTFontManagerErrors only.Expand description
Font registration errors
Errors that would prevent registration of fonts for a specified font file URL.
The file does not exist at the specified URL.
Cannot access the file due to insufficient permissions.
The file is not a recognized or supported font file format.
The file contains invalid font data that could cause system problems.
The file has already been registered in the specified scope.
Errors that would prevent un-registration of fonts for a specified font file URL.
The file is not registered in the specified scope.
The font file is actively in use and cannot be unregistered.
The file is required by the system and cannot be unregistered.
The file could not be processed due to an unexpected FontProvider error.
The file could not be processed because the provider does not have a necessary entitlement.
The font descriptor does not have information to specify a font file.
The operation was cancelled by the user.
The file could not be registered because of a duplicated font name.
The file is not in an allowed location. It must be either in the application’s bundle or an on-demand resource.
The operation failed due to a system limitation.
The specified scope is not supported.
See also Apple’s documentation
Tuple Fields§
§0: CFIndexImplementations§
Source§impl CTFontManagerError
impl CTFontManagerError
pub const FileNotFound: Self
pub const InsufficientPermissions: Self
pub const UnrecognizedFormat: Self
pub const InvalidFontData: Self
pub const AlreadyRegistered: Self
pub const ExceededResourceLimit: Self
pub const AssetNotFound: Self
pub const NotRegistered: Self
pub const InUse: Self
pub const SystemRequired: Self
pub const RegistrationFailed: Self
pub const MissingEntitlement: Self
pub const InsufficientInfo: Self
pub const CancelledByUser: Self
pub const DuplicatedName: Self
pub const InvalidFilePath: Self
pub const UnsupportedScope: Self
Trait Implementations§
Source§impl Clone for CTFontManagerError
impl Clone for CTFontManagerError
Source§fn clone(&self) -> CTFontManagerError
fn clone(&self) -> CTFontManagerError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CTFontManagerError
impl Debug for CTFontManagerError
Source§impl Encode for CTFontManagerError
Available on crate feature objc2 only.
impl Encode for CTFontManagerError
objc2 only.Source§impl Hash for CTFontManagerError
impl Hash for CTFontManagerError
Source§impl Ord for CTFontManagerError
impl Ord for CTFontManagerError
Source§fn cmp(&self, other: &CTFontManagerError) -> Ordering
fn cmp(&self, other: &CTFontManagerError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for CTFontManagerError
impl PartialEq for CTFontManagerError
Source§impl PartialOrd for CTFontManagerError
impl PartialOrd for CTFontManagerError
Source§impl RefEncode for CTFontManagerError
Available on crate feature objc2 only.
impl RefEncode for CTFontManagerError
objc2 only.