Struct skia_bindings::SkTypeface
source · #[repr(C)]pub struct SkTypeface {
pub _base: SkWeakRefCnt,
pub fUniqueID: SkTypefaceID,
pub fStyle: SkFontStyle,
pub fBounds: SkRect,
pub fBoundsOnce: SkOnce,
pub fIsFixedPitch: bool,
}
Fields§
§_base: SkWeakRefCnt
§fUniqueID: SkTypefaceID
§fStyle: SkFontStyle
§fBounds: SkRect
§fBoundsOnce: SkOnce
§fIsFixedPitch: bool
Implementations§
source§impl SkTypeface
impl SkTypeface
pub unsafe fn getVariationDesignPosition( &self, coordinates: *mut SkFontArguments_VariationPosition_Coordinate, coordinateCount: c_int ) -> c_int
pub unsafe fn getVariationDesignParameters( &self, parameters: *mut SkFontParameters_Variation_Axis, parameterCount: c_int ) -> c_int
pub unsafe fn UniqueID(face: *const SkTypeface) -> SkTypefaceID
pub unsafe fn Equal(facea: *const SkTypeface, faceb: *const SkTypeface) -> bool
pub unsafe fn MakeDefault() -> sk_sp<SkTypeface>
pub unsafe fn MakeFromName( familyName: *const c_char, fontStyle: SkFontStyle ) -> sk_sp<SkTypeface>
pub unsafe fn MakeFromFile( path: *const c_char, index: c_int ) -> sk_sp<SkTypeface>
pub unsafe fn MakeFromStream(stream: u64, index: c_int) -> sk_sp<SkTypeface>
pub unsafe fn MakeFromData( arg1: sk_sp<SkData>, index: c_int ) -> sk_sp<SkTypeface>
pub unsafe fn makeClone( &self, arg1: *const SkFontArguments ) -> sk_sp<SkTypeface>
pub unsafe fn serialize( &self, arg1: *mut SkWStream, arg2: SkTypeface_SerializeBehavior )
pub unsafe fn serialize1( &self, arg1: SkTypeface_SerializeBehavior ) -> sk_sp<SkData>
pub unsafe fn MakeDeserialize(arg1: *mut SkStream) -> sk_sp<SkTypeface>
pub unsafe fn unicharsToGlyphs( &self, uni: *const SkUnichar, count: c_int, glyphs: *mut SkGlyphID )
pub unsafe fn textToGlyphs( &self, text: *const c_void, byteLength: usize, encoding: SkTextEncoding, glyphs: *mut SkGlyphID, maxGlyphCount: c_int ) -> c_int
pub unsafe fn unicharToGlyph(&self, unichar: SkUnichar) -> SkGlyphID
pub unsafe fn countGlyphs(&self) -> c_int
pub unsafe fn countTables(&self) -> c_int
pub unsafe fn getTableTags(&self, tags: *mut SkFontTableTag) -> c_int
pub unsafe fn getTableSize(&self, arg1: SkFontTableTag) -> usize
pub unsafe fn getTableData( &self, tag: SkFontTableTag, offset: usize, length: usize, data: *mut c_void ) -> usize
pub unsafe fn copyTableData(&self, tag: SkFontTableTag) -> sk_sp<SkData>
pub unsafe fn getUnitsPerEm(&self) -> c_int
pub unsafe fn getKerningPairAdjustments( &self, glyphs: *const SkGlyphID, count: c_int, adjustments: *mut i32 ) -> bool
pub unsafe fn createFamilyNameIterator( &self ) -> *mut SkTypeface_LocalizedStrings
pub unsafe fn getFamilyName(&self, name: *mut SkString)
pub unsafe fn getPostScriptName(&self, name: *mut SkString) -> bool
pub unsafe fn openStream(&self, ttcIndex: *mut c_int) -> u64
pub unsafe fn openExistingStream(&self, ttcIndex: *mut c_int) -> u64
pub unsafe fn createScalerContext( &self, arg1: *const SkScalerContextEffects, arg2: *const SkDescriptor ) -> u8
pub unsafe fn getBounds(&self) -> SkRect
pub unsafe fn Register( id: SkTypeface_FactoryId, make: Option<unsafe extern "C" fn(arg1: u64, arg2: *const SkFontArguments) -> sk_sp<SkTypeface>> )
pub unsafe fn new(style: *const SkFontStyle, isFixedPitch: bool) -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SkTypeface
impl Send for SkTypeface
impl Sync for SkTypeface
impl Unpin for SkTypeface
impl UnwindSafe for SkTypeface
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