pub enum VariantCaps {
Normal,
SmallCaps,
AllSmallCaps,
PetiteCaps,
AllPetiteCaps,
Unicase,
TitlingCaps,
}Expand description
VariantCaps selects an OpenType capitalization variant.
If a font lacks the requested feature, text remains unchanged; Valo does not synthesize capital forms.
Variants§
Normal
Normal leaves capitalization features disabled.
SmallCaps
SmallCaps renders lowercase letters as small capitals.
AllSmallCaps
AllSmallCaps renders both lowercase and uppercase letters as small capitals.
PetiteCaps
PetiteCaps renders lowercase letters as petite capitals.
AllPetiteCaps
AllPetiteCaps renders both lowercase and uppercase letters as petite capitals.
Unicase
Unicase uses a mixture of uppercase and lowercase-sized capitals.
TitlingCaps
TitlingCaps uses capitals designed for display text.
Implementations§
Source§impl VariantCaps
impl VariantCaps
feature_tags returns the enabled OpenType tags in application order.
Trait Implementations§
Source§impl Clone for VariantCaps
impl Clone for VariantCaps
Source§fn clone(&self) -> VariantCaps
fn clone(&self) -> VariantCaps
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 Copy for VariantCaps
Source§impl Debug for VariantCaps
impl Debug for VariantCaps
Source§impl Default for VariantCaps
impl Default for VariantCaps
Source§fn default() -> VariantCaps
fn default() -> VariantCaps
Returns the “default value” for a type. Read more
impl Eq for VariantCaps
Source§impl PartialEq for VariantCaps
impl PartialEq for VariantCaps
impl StructuralPartialEq for VariantCaps
Auto Trait Implementations§
impl Freeze for VariantCaps
impl RefUnwindSafe for VariantCaps
impl Send for VariantCaps
impl Sync for VariantCaps
impl Unpin for VariantCaps
impl UnsafeUnpin for VariantCaps
impl UnwindSafe for VariantCaps
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