#[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

source

pub unsafe fn getVariationDesignPosition( &self, coordinates: *mut SkFontArguments_VariationPosition_Coordinate, coordinateCount: c_int ) -> c_int

source

pub unsafe fn getVariationDesignParameters( &self, parameters: *mut SkFontParameters_Variation_Axis, parameterCount: c_int ) -> c_int

source

pub unsafe fn UniqueID(face: *const SkTypeface) -> SkTypefaceID

source

pub unsafe fn Equal(facea: *const SkTypeface, faceb: *const SkTypeface) -> bool

source

pub unsafe fn MakeDefault() -> sk_sp<SkTypeface>

source

pub unsafe fn MakeFromName( familyName: *const c_char, fontStyle: SkFontStyle ) -> sk_sp<SkTypeface>

source

pub unsafe fn MakeFromFile( path: *const c_char, index: c_int ) -> sk_sp<SkTypeface>

source

pub unsafe fn MakeFromStream(stream: u64, index: c_int) -> sk_sp<SkTypeface>

source

pub unsafe fn MakeFromData( arg1: sk_sp<SkData>, index: c_int ) -> sk_sp<SkTypeface>

source

pub unsafe fn makeClone( &self, arg1: *const SkFontArguments ) -> sk_sp<SkTypeface>

source

pub unsafe fn serialize( &self, arg1: *mut SkWStream, arg2: SkTypeface_SerializeBehavior )

source

pub unsafe fn serialize1( &self, arg1: SkTypeface_SerializeBehavior ) -> sk_sp<SkData>

source

pub unsafe fn MakeDeserialize(arg1: *mut SkStream) -> sk_sp<SkTypeface>

source

pub unsafe fn unicharsToGlyphs( &self, uni: *const SkUnichar, count: c_int, glyphs: *mut SkGlyphID )

source

pub unsafe fn textToGlyphs( &self, text: *const c_void, byteLength: usize, encoding: SkTextEncoding, glyphs: *mut SkGlyphID, maxGlyphCount: c_int ) -> c_int

source

pub unsafe fn unicharToGlyph(&self, unichar: SkUnichar) -> SkGlyphID

source

pub unsafe fn countGlyphs(&self) -> c_int

source

pub unsafe fn countTables(&self) -> c_int

source

pub unsafe fn getTableTags(&self, tags: *mut SkFontTableTag) -> c_int

source

pub unsafe fn getTableSize(&self, arg1: SkFontTableTag) -> usize

source

pub unsafe fn getTableData( &self, tag: SkFontTableTag, offset: usize, length: usize, data: *mut c_void ) -> usize

source

pub unsafe fn copyTableData(&self, tag: SkFontTableTag) -> sk_sp<SkData>

source

pub unsafe fn getUnitsPerEm(&self) -> c_int

source

pub unsafe fn getKerningPairAdjustments( &self, glyphs: *const SkGlyphID, count: c_int, adjustments: *mut i32 ) -> bool

source

pub unsafe fn createFamilyNameIterator( &self ) -> *mut SkTypeface_LocalizedStrings

source

pub unsafe fn getFamilyName(&self, name: *mut SkString)

source

pub unsafe fn getPostScriptName(&self, name: *mut SkString) -> bool

source

pub unsafe fn openStream(&self, ttcIndex: *mut c_int) -> u64

source

pub unsafe fn openExistingStream(&self, ttcIndex: *mut c_int) -> u64

source

pub unsafe fn createScalerContext( &self, arg1: *const SkScalerContextEffects, arg2: *const SkDescriptor ) -> u8

source

pub unsafe fn getBounds(&self) -> SkRect

source

pub unsafe fn Register( id: SkTypeface_FactoryId, make: Option<unsafe extern "C" fn(arg1: u64, arg2: *const SkFontArguments) -> sk_sp<SkTypeface>> )

source

pub unsafe fn new(style: *const SkFontStyle, isFixedPitch: bool) -> Self

Trait Implementations§

source§

impl Debug for SkTypeface

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.