Struct skia_bindings::SkFontMgr
source · #[repr(C)]#[repr(align(8))]pub struct SkFontMgr {
pub _bindgen_opaque_blob: [u64; 2],
}
Fields§
§_bindgen_opaque_blob: [u64; 2]
Implementations§
source§impl SkFontMgr
impl SkFontMgr
pub unsafe fn countFamilies(&self) -> c_int
pub unsafe fn getFamilyName(&self, index: c_int, familyName: *mut SkString)
pub unsafe fn createStyleSet(&self, index: c_int) -> sk_sp<SkFontStyleSet>
pub unsafe fn matchFamily( &self, familyName: *const c_char ) -> sk_sp<SkFontStyleSet>
pub unsafe fn matchFamilyStyle( &self, familyName: *const c_char, arg1: *const SkFontStyle ) -> sk_sp<SkTypeface>
pub unsafe fn matchFamilyStyleCharacter( &self, familyName: *const c_char, arg1: *const SkFontStyle, bcp47: *mut *const c_char, bcp47Count: c_int, character: SkUnichar ) -> sk_sp<SkTypeface>
pub unsafe fn makeFromData( &self, arg1: sk_sp<SkData>, ttcIndex: c_int ) -> sk_sp<SkTypeface>
pub unsafe fn makeFromStream( &self, arg1: u64, ttcIndex: c_int ) -> sk_sp<SkTypeface>
pub unsafe fn makeFromStream1( &self, arg1: u64, arg2: *const SkFontArguments ) -> sk_sp<SkTypeface>
pub unsafe fn makeFromFile( &self, path: *const c_char, ttcIndex: c_int ) -> sk_sp<SkTypeface>
pub unsafe fn legacyMakeTypeface( &self, familyName: *const c_char, style: SkFontStyle ) -> sk_sp<SkTypeface>
pub unsafe fn RefDefault() -> sk_sp<SkFontMgr>
pub unsafe fn RefEmpty() -> sk_sp<SkFontMgr>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SkFontMgr
impl Send for SkFontMgr
impl Sync for SkFontMgr
impl Unpin for SkFontMgr
impl UnwindSafe for SkFontMgr
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