pub struct ScriptMetrics<T = F48Dot16> {
pub x_size: T,
pub y_size: T,
pub x_offset: T,
pub y_offset: T,
}Expand description
The size and placement of a subscript or superscript em box.
Values are in font units unless a caller names another unit.
Fields§
§x_size: TSuggested width of the script em box.
y_size: TSuggested height of the script em box.
x_offset: THorizontal offset from the base glyph.
y_offset: TVertical offset from the baseline. A positive subscript offset is below
it; a positive superscript offset is above it, as in OS/2.
Trait Implementations§
Source§impl<T: Clone> Clone for ScriptMetrics<T>
impl<T: Clone> Clone for ScriptMetrics<T>
Source§fn clone(&self) -> ScriptMetrics<T>
fn clone(&self) -> ScriptMetrics<T>
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 moreimpl<T: Copy> Copy for ScriptMetrics<T>
Source§impl<T: Debug> Debug for ScriptMetrics<T>
impl<T: Debug> Debug for ScriptMetrics<T>
Source§impl<T: Default> Default for ScriptMetrics<T>
impl<T: Default> Default for ScriptMetrics<T>
Source§fn default() -> ScriptMetrics<T>
fn default() -> ScriptMetrics<T>
Returns the “default value” for a type. Read more
impl<T: Eq> Eq for ScriptMetrics<T>
Source§impl<T: PartialEq> PartialEq for ScriptMetrics<T>
impl<T: PartialEq> PartialEq for ScriptMetrics<T>
impl<T: PartialEq> StructuralPartialEq for ScriptMetrics<T>
Auto Trait Implementations§
impl<T> Freeze for ScriptMetrics<T>where
T: Freeze,
impl<T> RefUnwindSafe for ScriptMetrics<T>where
T: RefUnwindSafe,
impl<T> Send for ScriptMetrics<T>where
T: Send,
impl<T> Sync for ScriptMetrics<T>where
T: Sync,
impl<T> Unpin for ScriptMetrics<T>where
T: Unpin,
impl<T> UnsafeUnpin for ScriptMetrics<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ScriptMetrics<T>where
T: UnwindSafe,
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