pub enum VariantCaps {
Normal,
SmallCaps,
AllSmallCaps,
PetiteCaps,
AllPetiteCaps,
Unicase,
TitlingCaps,
}Expand description
CSS font-variant-caps, lowered to the OpenType features a shaper
understands. Every variant here is a font capability: a face without the
feature renders unchanged rather than synthesizing small capitals, which
is what browsers do for font-synthesis: none and what valo always does.
Variants§
Normal
SmallCaps
smcp — lowercase becomes small capitals.
AllSmallCaps
c2sc + smcp — capitals shrink to small capitals too.
PetiteCaps
pcap — the lighter-weight petite variant.
AllPetiteCaps
c2pc + pcap.
Unicase
unic — lowercase-looking capitals.
TitlingCaps
titl — capitals cut for all-caps display sizes.
Implementations§
Source§impl VariantCaps
impl VariantCaps
The OpenType tags this variant turns ON, 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