pub struct FontLoadReport {
pub loaded: usize,
pub skipped_unsupported: usize,
pub missing_external_dirs: Vec<PathBuf>,
pub failures: Vec<FontLoadFailure>,
pub missing_required_families: Vec<SharedString>,
}Expand description
Summary returned after attempting to load app fonts.
Fields§
§loaded: usizeNumber of font faces or font files passed to GPUI successfully.
skipped_unsupported: usizeExternal files skipped because their extension is not supported.
missing_external_dirs: Vec<PathBuf>External directories that do not exist. Missing directories are not fatal because packaged and source-tree layouts often differ.
failures: Vec<FontLoadFailure>Sources that existed but failed to read, resolve, or register.
missing_required_families: Vec<SharedString>Required families that are still not visible to GPUI after all selected sources and fallbacks have been attempted.
Implementations§
Source§impl FontLoadReport
impl FontLoadReport
Sourcepub fn loaded_any(&self) -> bool
pub fn loaded_any(&self) -> bool
Returns true when at least one font source was passed to GPUI without
a transport-level error.
This does not prove a specific family became available. Use
FontLoadOptions::require_family and inspect
FontLoadReport::missing_required_families for that stronger check.
Sourcepub fn required_families_available(&self) -> bool
pub fn required_families_available(&self) -> bool
Returns true when all families listed with
FontLoadOptions::require_family were visible after loading.
Trait Implementations§
Source§impl Clone for FontLoadReport
impl Clone for FontLoadReport
Source§fn clone(&self) -> FontLoadReport
fn clone(&self) -> FontLoadReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FontLoadReport
impl Debug for FontLoadReport
Source§impl Default for FontLoadReport
impl Default for FontLoadReport
Source§fn default() -> FontLoadReport
fn default() -> FontLoadReport
impl Eq for FontLoadReport
Source§impl PartialEq for FontLoadReport
impl PartialEq for FontLoadReport
Source§fn eq(&self, other: &FontLoadReport) -> bool
fn eq(&self, other: &FontLoadReport) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FontLoadReport
Auto Trait Implementations§
impl Freeze for FontLoadReport
impl RefUnwindSafe for FontLoadReport
impl Send for FontLoadReport
impl Sync for FontLoadReport
impl Unpin for FontLoadReport
impl UnsafeUnpin for FontLoadReport
impl UnwindSafe for FontLoadReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().