pub struct HorzStringInfo {
pub font: FontKey,
pub size: Length,
pub rising: Length,
pub color: Color,
}Expand description
Which font/size a string box is set in (horz_string_info).
Fields§
§font: FontKey§size: Length§rising: LengthA manual baseline raise (ScriptFont::rising scaled by the
run’s font size — fontInfo.ml’s get_font_with_ratio). Both PDF
writers add it to the placed ty before Tj.
color: Colorset-text-color’s value at the time this run/glyph was built
(Context::text_color). Color::Gray(0.0) (black) is the default and
both writers emit NO color op for a black run.
Trait Implementations§
Source§impl Clone for HorzStringInfo
impl Clone for HorzStringInfo
Source§fn clone(&self) -> HorzStringInfo
fn clone(&self) -> HorzStringInfo
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 moreSource§impl Debug for HorzStringInfo
impl Debug for HorzStringInfo
Source§impl PartialEq for HorzStringInfo
impl PartialEq for HorzStringInfo
impl StructuralPartialEq for HorzStringInfo
Auto Trait Implementations§
impl Freeze for HorzStringInfo
impl RefUnwindSafe for HorzStringInfo
impl Send for HorzStringInfo
impl Sync for HorzStringInfo
impl Unpin for HorzStringInfo
impl UnsafeUnpin for HorzStringInfo
impl UnwindSafe for HorzStringInfo
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