[−][src]Struct skia_bindings::SkFont
Fields
fTypeface: sk_sp<SkTypeface>
fSize: SkScalar
fScaleX: SkScalar
fSkewX: SkScalar
fFlags: u8
fEdging: u8
fHinting: u8
Methods
impl SkFont
[src]
pub unsafe fn setForceAutoHinting(&mut self, forceAutoHinting: bool)
[src]
pub unsafe fn setEmbeddedBitmaps(&mut self, embeddedBitmaps: bool)
[src]
pub unsafe fn setSubpixel(&mut self, subpixel: bool)
[src]
pub unsafe fn setLinearMetrics(&mut self, linearMetrics: bool)
[src]
pub unsafe fn setEmbolden(&mut self, embolden: bool)
[src]
pub unsafe fn setEdging(&mut self, edging: SkFont_Edging)
[src]
pub unsafe fn setHinting(&mut self, hintingLevel: SkFontHinting)
[src]
pub unsafe fn makeWithSize(&self, size: SkScalar) -> SkFont
[src]
pub unsafe fn getTypefaceOrDefault(&self) -> *mut SkTypeface
[src]
pub unsafe fn refTypefaceOrDefault(&self) -> sk_sp<SkTypeface>
[src]
pub unsafe fn setSize(&mut self, textSize: SkScalar)
[src]
pub unsafe fn setScaleX(&mut self, scaleX: SkScalar)
[src]
pub unsafe fn setSkewX(&mut self, skewX: SkScalar)
[src]
pub unsafe fn textToGlyphs(
&self,
text: *const c_void,
byteLength: usize,
encoding: SkTextEncoding,
glyphs: *mut SkGlyphID,
maxGlyphCount: c_int
) -> c_int
[src]
&self,
text: *const c_void,
byteLength: usize,
encoding: SkTextEncoding,
glyphs: *mut SkGlyphID,
maxGlyphCount: c_int
) -> c_int
pub unsafe fn unicharToGlyph(&self, uni: SkUnichar) -> SkGlyphID
[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 measureText(
&self,
text: *const c_void,
byteLength: usize,
encoding: SkTextEncoding,
bounds: *mut SkRect,
paint: *const SkPaint
) -> SkScalar
[src]
&self,
text: *const c_void,
byteLength: usize,
encoding: SkTextEncoding,
bounds: *mut SkRect,
paint: *const SkPaint
) -> SkScalar
pub unsafe fn getWidthsBounds(
&self,
glyphs: *const SkGlyphID,
count: c_int,
widths: *mut SkScalar,
bounds: *mut SkRect,
paint: *const SkPaint
)
[src]
&self,
glyphs: *const SkGlyphID,
count: c_int,
widths: *mut SkScalar,
bounds: *mut SkRect,
paint: *const SkPaint
)
pub unsafe fn getPos(
&self,
glyphs: *const SkGlyphID,
count: c_int,
pos: *mut SkPoint,
origin: SkPoint
)
[src]
&self,
glyphs: *const SkGlyphID,
count: c_int,
pos: *mut SkPoint,
origin: SkPoint
)
pub unsafe fn getXPos(
&self,
glyphs: *const SkGlyphID,
count: c_int,
xpos: *mut SkScalar,
origin: SkScalar
)
[src]
&self,
glyphs: *const SkGlyphID,
count: c_int,
xpos: *mut SkScalar,
origin: SkScalar
)
pub unsafe fn getPath(&self, glyphID: SkGlyphID, path: *mut SkPath) -> bool
[src]
pub unsafe fn getPaths(
&self,
glyphIDs: *const SkGlyphID,
count: c_int,
glyphPathProc: Option<unsafe extern "C" fn(pathOrNull: *const SkPath, mx: *const SkMatrix, ctx: *mut c_void)>,
ctx: *mut c_void
)
[src]
&self,
glyphIDs: *const SkGlyphID,
count: c_int,
glyphPathProc: Option<unsafe extern "C" fn(pathOrNull: *const SkPath, mx: *const SkMatrix, ctx: *mut c_void)>,
ctx: *mut c_void
)
pub unsafe fn getMetrics(&self, metrics: *mut SkFontMetrics) -> SkScalar
[src]
pub unsafe fn dump(&self)
[src]
pub unsafe fn new() -> Self
[src]
pub unsafe fn new1(typeface: sk_sp<SkTypeface>, size: SkScalar) -> Self
[src]
pub unsafe fn new2(typeface: sk_sp<SkTypeface>) -> Self
[src]
pub unsafe fn new3(
typeface: sk_sp<SkTypeface>,
size: SkScalar,
scaleX: SkScalar,
skewX: SkScalar
) -> Self
[src]
typeface: sk_sp<SkTypeface>,
size: SkScalar,
scaleX: SkScalar,
skewX: SkScalar
) -> Self
Auto Trait Implementations
impl !Send for SkFont
impl Unpin for SkFont
impl !Sync for SkFont
impl !RefUnwindSafe for SkFont
impl UnwindSafe for SkFont
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,