pub struct WatermarkText {
pub text: String,
pub font_size: f32,
pub color: ColorRgb,
pub rotation_deg: f32,
pub font_families: Vec<String>,
}Fields§
§text: String§font_size: f32§color: ColorRgb§rotation_deg: f32§font_families: Vec<String>Font families for this element, in fallback order. Empty means
“inherit the document body families” (body_font_families, or
the bundled Noto defaults when that is also empty). Names must
be families the font collection knows — either system-installed
or exposed by a file listed in font_paths.
Note this REPLACES the body list rather than extending it, so a Latin-only face here will lose the multi-script fallbacks. List the scripts you need explicitly if the document is not Latin-only.
Trait Implementations§
Source§impl Clone for WatermarkText
impl Clone for WatermarkText
Source§impl Debug for WatermarkText
impl Debug for WatermarkText
Source§impl Default for WatermarkText
impl Default for WatermarkText
Source§impl<'de> Deserialize<'de> for WatermarkTextwhere
WatermarkText: Default,
impl<'de> Deserialize<'de> for WatermarkTextwhere
WatermarkText: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for WatermarkText
impl Freeze for WatermarkText
impl Move for WatermarkText
impl RefUnwindSafe for WatermarkText
impl Send for WatermarkText
impl Sync for WatermarkText
impl Unpin for WatermarkText
impl UnsafeUnpin for WatermarkText
impl UnwindSafe for WatermarkText
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.