pub struct XfaFontSpec {
pub typeface: String,
pub weight: FontWeight,
pub posture: FontPosture,
pub size_pt: f64,
pub generic_family: Option<GenericFamily>,
}Expand description
XFA font specification from the template.
Fields§
§typeface: Stringtypeface.
weight: FontWeightweight.
posture: FontPostureposture.
size_pt: f64size_pt.
generic_family: Option<GenericFamily>XFA Spec 3.3 §17 (p716) — genericFamily fallback hint.
Implementations§
Trait Implementations§
Source§impl Clone for XfaFontSpec
impl Clone for XfaFontSpec
Source§fn clone(&self) -> XfaFontSpec
fn clone(&self) -> XfaFontSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for XfaFontSpec
impl RefUnwindSafe for XfaFontSpec
impl Send for XfaFontSpec
impl Sync for XfaFontSpec
impl Unpin for XfaFontSpec
impl UnsafeUnpin for XfaFontSpec
impl UnwindSafe for XfaFontSpec
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more