Struct fontconfig::FontSet
source · pub struct FontSet<'fc> { /* private fields */ }
Expand description
Wrapper around FcFontSet
.
Implementations§
source§impl<'fc> FontSet<'fc>
impl<'fc> FontSet<'fc>
sourcepub fn new(fc: &Fontconfig) -> FontSet<'_>
pub fn new(fc: &Fontconfig) -> FontSet<'_>
Create a new, empty FontSet
.
sourcepub unsafe fn from_raw(fc: &Fontconfig, raw_set: *mut FcFontSet) -> FontSet<'_>
pub unsafe fn from_raw(fc: &Fontconfig, raw_set: *mut FcFontSet) -> FontSet<'_>
Wrap an existing FcFontSet
.
The returned wrapper assumes ownership of the FcFontSet
.
Safety: The font set pointer must be valid/non-null.
sourcepub fn add_pattern(&mut self, pat: Pattern<'_>)
pub fn add_pattern(&mut self, pat: Pattern<'_>)
Add a Pattern
to this FontSet
.
Trait Implementations§
Auto Trait Implementations§
impl<'fc> RefUnwindSafe for FontSet<'fc>
impl<'fc> !Send for FontSet<'fc>
impl<'fc> !Sync for FontSet<'fc>
impl<'fc> Unpin for FontSet<'fc>
impl<'fc> UnwindSafe for FontSet<'fc>
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