Skip to main content

FontFaceMethods

pub trait FontFaceMethods<D: DomTypes> {
Show 26 methods // Required methods fn Family(&self) -> DOMString; fn SetFamily(&self, value: DOMString) -> ErrorResult; fn Style(&self) -> DOMString; fn SetStyle(&self, value: DOMString) -> ErrorResult; fn Weight(&self) -> DOMString; fn SetWeight(&self, value: DOMString) -> ErrorResult; fn Width(&self) -> DOMString; fn SetWidth(&self, value: DOMString) -> ErrorResult; fn UnicodeRange(&self) -> DOMString; fn SetUnicodeRange(&self, value: DOMString) -> ErrorResult; fn FeatureSettings(&self) -> DOMString; fn SetFeatureSettings(&self, value: DOMString) -> ErrorResult; fn VariationSettings(&self) -> DOMString; fn SetVariationSettings(&self, value: DOMString) -> ErrorResult; fn Display(&self) -> DOMString; fn SetDisplay(&self, value: DOMString) -> ErrorResult; fn AscentOverride(&self) -> DOMString; fn SetAscentOverride(&self, value: DOMString) -> ErrorResult; fn DescentOverride(&self) -> DOMString; fn SetDescentOverride(&self, value: DOMString) -> ErrorResult; fn LineGapOverride(&self) -> DOMString; fn SetLineGapOverride(&self, value: DOMString) -> ErrorResult; fn Status(&self) -> FontFaceLoadStatus; fn Load( &self, cx: &mut JSContext, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot; fn Loaded( &self, cx: &JSContext, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot; fn Constructor( cx: &mut JSContext, global: &D::Window, proto: Option<HandleObject<'_>>, family: DOMString, source: StringOrArrayBufferViewOrArrayBuffer, descriptors: &FontFaceDescriptors, ) -> DomRoot<D::FontFace>;
}

Required Methods§

Source

fn Family(&self) -> DOMString

Source

fn SetFamily(&self, value: DOMString) -> ErrorResult

Source

fn Style(&self) -> DOMString

Source

fn SetStyle(&self, value: DOMString) -> ErrorResult

Source

fn Weight(&self) -> DOMString

Source

fn SetWeight(&self, value: DOMString) -> ErrorResult

Source

fn Width(&self) -> DOMString

Source

fn SetWidth(&self, value: DOMString) -> ErrorResult

Source

fn UnicodeRange(&self) -> DOMString

Source

fn SetUnicodeRange(&self, value: DOMString) -> ErrorResult

Source

fn FeatureSettings(&self) -> DOMString

Source

fn SetFeatureSettings(&self, value: DOMString) -> ErrorResult

Source

fn VariationSettings(&self) -> DOMString

Source

fn SetVariationSettings(&self, value: DOMString) -> ErrorResult

Source

fn Display(&self) -> DOMString

Source

fn SetDisplay(&self, value: DOMString) -> ErrorResult

Source

fn AscentOverride(&self) -> DOMString

Source

fn SetAscentOverride(&self, value: DOMString) -> ErrorResult

Source

fn DescentOverride(&self) -> DOMString

Source

fn SetDescentOverride(&self, value: DOMString) -> ErrorResult

Source

fn LineGapOverride(&self) -> DOMString

Source

fn SetLineGapOverride(&self, value: DOMString) -> ErrorResult

Source

fn Status(&self) -> FontFaceLoadStatus

Source

fn Load( &self, cx: &mut JSContext, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot

Source

fn Loaded(&self, cx: &JSContext) -> <D::Promise as PromiseHelpers<D>>::StackRoot

Source

fn Constructor( cx: &mut JSContext, global: &D::Window, proto: Option<HandleObject<'_>>, family: DOMString, source: StringOrArrayBufferViewOrArrayBuffer, descriptors: &FontFaceDescriptors, ) -> DomRoot<D::FontFace>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§