[−][src]Struct skia_bindings::SkTypeface
Fields
_base: SkWeakRefCnt
fUniqueID: SkFontID
fStyle: SkFontStyle
fBounds: SkRect
fBoundsOnce: SkOnce
fIsFixedPitch: bool
Methods
impl SkTypeface
[src]
pub unsafe fn getVariationDesignPosition(
&self,
coordinates: *mut SkFontArguments_VariationPosition_Coordinate,
coordinateCount: c_int
) -> c_int
[src]
&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
[src]
&self,
parameters: *mut SkFontParameters_Variation_Axis,
parameterCount: c_int
) -> c_int
pub unsafe fn UniqueID(face: *const SkTypeface) -> SkFontID
[src]
pub unsafe fn Equal(facea: *const SkTypeface, faceb: *const SkTypeface) -> bool
[src]
pub unsafe fn MakeDefault() -> sk_sp<SkTypeface>
[src]
pub unsafe fn MakeFromName(
familyName: *const c_char,
fontStyle: SkFontStyle
) -> sk_sp<SkTypeface>
[src]
familyName: *const c_char,
fontStyle: SkFontStyle
) -> sk_sp<SkTypeface>
pub unsafe fn MakeFromFile(
path: *const c_char,
index: c_int
) -> sk_sp<SkTypeface>
[src]
path: *const c_char,
index: c_int
) -> sk_sp<SkTypeface>
pub unsafe fn MakeFromStream(stream: u64, index: c_int) -> sk_sp<SkTypeface>
[src]
pub unsafe fn MakeFromData(
arg1: sk_sp<SkData>,
index: c_int
) -> sk_sp<SkTypeface>
[src]
arg1: sk_sp<SkData>,
index: c_int
) -> sk_sp<SkTypeface>
pub unsafe fn MakeFromFontData(arg1: u8) -> sk_sp<SkTypeface>
[src]
pub unsafe fn makeClone(
&self,
arg1: *const SkFontArguments
) -> sk_sp<SkTypeface>
[src]
&self,
arg1: *const SkFontArguments
) -> sk_sp<SkTypeface>
pub unsafe fn serialize(
&self,
arg1: *mut SkWStream,
arg2: SkTypeface_SerializeBehavior
)
[src]
&self,
arg1: *mut SkWStream,
arg2: SkTypeface_SerializeBehavior
)
pub unsafe fn serialize1(
&self,
arg1: SkTypeface_SerializeBehavior
) -> sk_sp<SkData>
[src]
&self,
arg1: SkTypeface_SerializeBehavior
) -> sk_sp<SkData>
pub unsafe fn MakeDeserialize(arg1: *mut SkStream) -> sk_sp<SkTypeface>
[src]
pub unsafe fn unicharsToGlyphs(
&self,
uni: *const SkUnichar,
count: c_int,
glyphs: *mut SkGlyphID
)
[src]
&self,
uni: *const SkUnichar,
count: c_int,
glyphs: *mut SkGlyphID
)
pub unsafe fn unicharToGlyph(&self, unichar: SkUnichar) -> SkGlyphID
[src]
pub unsafe fn countGlyphs(&self) -> c_int
[src]
pub unsafe fn countTables(&self) -> c_int
[src]
pub unsafe fn getTableTags(&self, tags: *mut SkFontTableTag) -> c_int
[src]
pub unsafe fn getTableSize(&self, arg1: SkFontTableTag) -> usize
[src]
pub unsafe fn getTableData(
&self,
tag: SkFontTableTag,
offset: usize,
length: usize,
data: *mut c_void
) -> usize
[src]
&self,
tag: SkFontTableTag,
offset: usize,
length: usize,
data: *mut c_void
) -> usize
pub unsafe fn copyTableData(&self, tag: SkFontTableTag) -> sk_sp<SkData>
[src]
pub unsafe fn getUnitsPerEm(&self) -> c_int
[src]
pub unsafe fn getKerningPairAdjustments(
&self,
glyphs: *const SkGlyphID,
count: c_int,
adjustments: *mut i32
) -> bool
[src]
&self,
glyphs: *const SkGlyphID,
count: c_int,
adjustments: *mut i32
) -> bool
pub unsafe fn createFamilyNameIterator(
&self
) -> *mut SkTypeface_LocalizedStrings
[src]
&self
) -> *mut SkTypeface_LocalizedStrings
pub unsafe fn getFamilyName(&self, name: *mut SkString)
[src]
pub unsafe fn openStream(&self, ttcIndex: *mut c_int) -> u64
[src]
pub unsafe fn makeFontData(&self) -> u8
[src]
pub unsafe fn createScalerContext(
&self,
arg1: *const SkScalerContextEffects,
arg2: *const SkDescriptor,
allowFailure: bool
) -> u8
[src]
&self,
arg1: *const SkScalerContextEffects,
arg2: *const SkDescriptor,
allowFailure: bool
) -> u8
pub unsafe fn getBounds(&self) -> SkRect
[src]
pub unsafe fn new(style: *const SkFontStyle, isFixedPitch: bool) -> Self
[src]
Auto Trait Implementations
impl Send for SkTypeface
impl Unpin for SkTypeface
impl Sync for SkTypeface
impl RefUnwindSafe for SkTypeface
impl UnwindSafe for SkTypeface
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,