pub struct DefaultAppearance {
pub font: Option<String>,
pub font_size: Option<f32>,
pub fill_color: Option<Vec<f32>>,
}Expand description
What a default appearance string (/DA, ISO 32000-1 §12.7.3.3) sets: the
font resource name and size of its Tf operator and the fill colour of
its last g, rg or k operator. Any other operator is ignored.
Fields§
§font: Option<String>The Tf font resource name, a key of the form’s /DR /Font
dictionary.
font_size: Option<f32>The Tf size as written; 0 means the text is sized to fit its widget.
fill_color: Option<Vec<f32>>The fill colour components of the last g, rg or k operator:
one gray, three RGB or four CMYK components.
Implementations§
Source§impl DefaultAppearance
impl DefaultAppearance
Sourcepub fn parse(da: &str) -> DefaultAppearance
pub fn parse(da: &str) -> DefaultAppearance
Reads a /DA string as content stream operators; a string the
content parser rejects sets nothing.
Covers ISO 32000-1 §12.7.3.3.
Trait Implementations§
Source§impl Clone for DefaultAppearance
impl Clone for DefaultAppearance
Source§impl Debug for DefaultAppearance
impl Debug for DefaultAppearance
Source§impl Default for DefaultAppearance
impl Default for DefaultAppearance
Source§impl PartialEq for DefaultAppearance
impl PartialEq for DefaultAppearance
impl StructuralPartialEq for DefaultAppearance
Auto Trait Implementations§
impl Freeze for DefaultAppearance
impl RefUnwindSafe for DefaultAppearance
impl Send for DefaultAppearance
impl Sync for DefaultAppearance
impl Unpin for DefaultAppearance
impl UnsafeUnpin for DefaultAppearance
impl UnwindSafe for DefaultAppearance
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