pub enum TextAutofit {
None,
Shape,
Normal {
font_scale_1000ths_percent: Option<i32>,
line_spacing_reduction_1000ths_percent: Option<i32>,
},
}Expand description
EG_TextAutofit — how a text body reacts to content that doesn’t fit its shape. Grounded
against real fixtures exercising all three variants.
Variants§
None
<a:noAutofit/> — text overflows the shape rather than being resized (explicitly opts out,
distinct from the field itself being None, which omits the element and inherits instead).
Shape
<a:spAutoFit/> — the shape itself resizes to fit its text (a text box’s own common
default).
Normal
<a:normAutofit fontScale=".." lnSpcReduction=".."/> — the text itself shrinks (font size
scaled down, line spacing reduced) to fit the shape. Both attributes are
ST_TextFontScalePercentOrPercentString/ ST_TextSpacingPercentOrPercentString in
thousandths of a percent; None on either omits that attribute (a bare <a:normAutofit/>,
also valid and commonly seen, meaning “shrink as needed, exact amount left to the
renderer”).
Trait Implementations§
Source§impl Clone for TextAutofit
impl Clone for TextAutofit
Source§fn clone(&self) -> TextAutofit
fn clone(&self) -> TextAutofit
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TextAutofit
Source§impl Debug for TextAutofit
impl Debug for TextAutofit
impl Eq for TextAutofit
Source§impl PartialEq for TextAutofit
impl PartialEq for TextAutofit
impl StructuralPartialEq for TextAutofit
Auto Trait Implementations§
impl Freeze for TextAutofit
impl RefUnwindSafe for TextAutofit
impl Send for TextAutofit
impl Sync for TextAutofit
impl Unpin for TextAutofit
impl UnsafeUnpin for TextAutofit
impl UnwindSafe for TextAutofit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.