Type Alias freya_engine::prelude::FontMgr

pub type FontMgr = RCHandle<SkFontMgr>;

Aliased Type§

struct FontMgr(/* private fields */);

Implementations§

§

impl RCHandle<SkFontMgr>

pub fn new() -> RCHandle<SkFontMgr>

pub fn empty() -> RCHandle<SkFontMgr>

pub fn count_families(&self) -> usize

pub fn family_name(&self, index: usize) -> String

pub fn family_names(&self) -> impl Iterator<Item = String>

pub fn new_styleset(&self, index: usize) -> RCHandle<SkFontStyleSet>

👎Deprecated since 0.41.0: Use new_style_set

pub fn new_style_set(&self, index: usize) -> RCHandle<SkFontStyleSet>

pub fn match_family( &self, family_name: impl AsRef<str> ) -> RCHandle<SkFontStyleSet>

pub fn match_family_style( &self, family_name: impl AsRef<str>, style: FontStyle ) -> Option<RCHandle<SkTypeface>>

pub fn match_family_style_character( &self, family_name: impl AsRef<str>, style: FontStyle, bcp_47: &[&str], character: i32 ) -> Option<RCHandle<SkTypeface>>

pub fn match_face_style( &self, _typeface: impl AsRef<RCHandle<SkTypeface>>, _style: FontStyle ) -> !

👎Deprecated since 0.35.0: Removed without replacement

pub fn new_from_data( &self, bytes: &[u8], ttc_index: impl Into<Option<usize>> ) -> Option<RCHandle<SkTypeface>>

Trait Implementations§

§

impl<N> AsRef<RCHandle<N>> for RCHandle<N>where N: NativeRefCounted,

§

fn as_ref(&self) -> &RCHandle<N>

Converts this type into a shared reference of the (usually inferred) input type.
§

impl<N> Clone for RCHandle<N>where N: NativeRefCounted,

§

fn clone(&self) -> RCHandle<N>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<H> ConditionallySend for RCHandle<H>where H: NativeRefCountedBase,

RCHandle<H> is conditionally Send and can be sent to another thread when its reference count is 1.

§

fn can_send(&self) -> bool

Returns true if the handle can be sent to another thread.
§

fn wrap_send(self) -> Result<Sendable<RCHandle<H>>, RCHandle<H>>

Wrap the handle in a type that can be sent to another thread and unwrapped there. Read more
§

impl Debug for RCHandle<SkFontMgr>

§

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

Formats the value using the given formatter. Read more
§

impl Default for RCHandle<SkFontMgr>

§

fn default() -> RCHandle<SkFontMgr>

Returns the “default value” for a type. Read more
§

impl<N> Drop for RCHandle<N>where N: NativeRefCounted,

§

fn drop(&mut self)

Executes the destructor for this type. Read more
§

impl<N> Flattenable for RCHandle<N>where N: NativeFlattenable + NativeRefCountedBase,

§

fn type_name(&self) -> &CStr

§

fn serialize(&self) -> RCHandle<SkData>

§

fn deserialize(data: &[u8]) -> Option<RCHandle<N>>

§

impl<N> From<&RCHandle<N>> for RCHandle<N>where N: NativeRefCounted,

A reference counted handle is cheap to clone, so we do support a conversion from a reference to a ref counter to an owned handle.

§

fn from(rch: &RCHandle<N>) -> RCHandle<N>

Converts to this type from the input type.
§

impl From<RCHandle<SkOrderedFontMgr>> for RCHandle<SkFontMgr>

§

fn from(font_mgr: RCHandle<SkOrderedFontMgr>) -> RCHandle<SkFontMgr>

Converts to this type from the input type.
§

impl From<RCHandle<skia_textlayout_TypefaceFontProvider>> for RCHandle<SkFontMgr>

§

fn from( provider: RCHandle<skia_textlayout_TypefaceFontProvider> ) -> RCHandle<SkFontMgr>

Converts to this type from the input type.
§

impl<N> PartialEq<RCHandle<N>> for RCHandle<N>where N: NativeRefCounted + NativePartialEq,

§

fn eq(&self, rhs: &RCHandle<N>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<N> PointerWrapper<N> for RCHandle<N>where N: NativeRefCounted,

§

fn wrap(ptr: *mut N) -> Option<RCHandle<N>>

Wraps a native pointer into a wrapper type. Returns None if the pointer is null.
§

fn unwrap(self) -> *mut N

Unwraps the wrapper type into the native pointer.
§

fn inner(&self) -> &N

Access the wrapped pointer.
§

fn inner_mut(&mut self) -> &mut N

Access the wrapped pointer.