pub struct SiFont { /* private fields */ }Expand description
Represents a font used for text rendering.
Implementations§
source§impl SiFont
impl SiFont
sourcepub async fn from_network_async(url: &str) -> Result<SiFont, JsValue>
pub async fn from_network_async(url: &str) -> Result<SiFont, JsValue>
Creates a new SiFont from font data fetched from a network URL asynchronously.
Arguments
url- The URL from which to fetch the font data.
sourcepub fn from_network(src: &str) -> SiFont
pub fn from_network(src: &str) -> SiFont
Creates a new SiFont from font data fetched from a network URL synchronously.
Arguments
src- The URL from which to fetch the font data.
Trait Implementations§
source§impl FromWasmAbi for SiFont
impl FromWasmAbi for SiFont
source§impl IntoWasmAbi for SiFont
impl IntoWasmAbi for SiFont
source§impl LongRefFromWasmAbi for SiFont
impl LongRefFromWasmAbi for SiFont
source§impl OptionFromWasmAbi for SiFont
impl OptionFromWasmAbi for SiFont
source§impl OptionIntoWasmAbi for SiFont
impl OptionIntoWasmAbi for SiFont
source§impl RefFromWasmAbi for SiFont
impl RefFromWasmAbi for SiFont
source§impl RefMutFromWasmAbi for SiFont
impl RefMutFromWasmAbi for SiFont
Auto Trait Implementations§
impl RefUnwindSafe for SiFont
impl Send for SiFont
impl Sync for SiFont
impl Unpin for SiFont
impl UnwindSafe for SiFont
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abisource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.