Skip to main content

FontTech

Enum FontTech 

Source
pub enum FontTech {
    ColorCbdt,
    ColorColrV0,
    ColorColrV1,
    ColorSbix,
    ColorSvg,
    FeaturesAat,
    FeaturesGraphite,
    FeaturesOpenType,
    Incremental,
    Palettes,
    Variations,
}
Expand description

A font technology, as named by the tech() hint of a CSS @font-face src descriptor.

Displays as the CSS technology keyword used inside tech(...) (color-colrv1, features-opentype, variations, …).

Variants§

§

ColorCbdt

Color bitmap data tables, CSS color-cbdt.

§

ColorColrV0

Multi-colored glyphs via COLR version 0 table, CSS color-colrv0.

§

ColorColrV1

Multi-colored glyphs via COLR version 1 table, CSS color-colrv1.

§

ColorSbix

Standard bitmap graphics tables, CSS color-sbix.

§

ColorSvg

SVG multi-colored tables, CSS color-svg.

§

FeaturesAat

TrueType morx and kerx tables, CSS features-aat.

§

FeaturesGraphite

Graphite features, namely Silf, Glat, Gloc, Feat, and Sill tables, CSS features-graphite.

§

FeaturesOpenType

OpenType GSUB and GPOS tables, CSS features-opentype.

§

Incremental

Incremental font loading, CSS incremental.

§

Palettes

Font palettes by means of font-palette to select one of many color palettes in the font, CSS palettes.

§

Variations

Font variations in TrueType and OpenType fonts to control the font axis, weight, glyphs, etc., CSS variations.

Implementations§

Source§

impl FontTech

Source

pub const fn keyword(self) -> &'static str

The CSS technology keyword for this technology, as written inside tech(...).

Source

pub fn from_keyword(keyword: &str) -> Option<Self>

The technology named by the given CSS tech(...) keyword, if the keyword names a known technology.

Trait Implementations§

Source§

impl Clone for FontTech

Source§

fn clone(&self) -> FontTech

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for FontTech

Source§

impl Debug for FontTech

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for FontTech

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for FontTech

Source§

impl Hash for FontTech

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for FontTech

Source§

fn eq(&self, other: &FontTech) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for FontTech

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneAny for T
where T: Any + Clone,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.