#[repr(C)]pub struct FcPattern {
pub name: Option<String>,
pub family: Option<String>,
pub italic: PatternMatch,
pub oblique: PatternMatch,
pub bold: PatternMatch,
pub monospace: PatternMatch,
pub condensed: PatternMatch,
pub weight: FcWeight,
pub stretch: FcStretch,
pub unicode_ranges: Vec<UnicodeRange>,
pub metadata: FcFontMetadata,
}
Expand description
Font pattern for matching
Fields§
§name: Option<String>
§family: Option<String>
§italic: PatternMatch
§oblique: PatternMatch
§bold: PatternMatch
§monospace: PatternMatch
§condensed: PatternMatch
§weight: FcWeight
§stretch: FcStretch
§unicode_ranges: Vec<UnicodeRange>
§metadata: FcFontMetadata
Implementations§
Trait Implementations§
Source§impl Ord for FcPattern
impl Ord for FcPattern
Source§impl PartialOrd for FcPattern
impl PartialOrd for FcPattern
impl Eq for FcPattern
impl StructuralPartialEq for FcPattern
Auto Trait Implementations§
impl Freeze for FcPattern
impl RefUnwindSafe for FcPattern
impl Send for FcPattern
impl Sync for FcPattern
impl Unpin for FcPattern
impl UnwindSafe for FcPattern
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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 more