pub enum Property {
Show 49 variants Family(Expression), FamilyLang(Expression), Style(Expression), StyleLang(Expression), FullName(Expression), FullNameLang(Expression), Slant(Expression), Weight(Expression), Size(Expression), Width(Expression), Aspect(Expression), PixelSize(Expression), Spacing(Expression), Foundry(Expression), Antialias(Expression), Hinting(Expression), HintStyle(Expression), VerticalLayout(Expression), AutoHint(Expression), GlobalAdvance(Expression), File(Expression), Index(Expression), Rasterizer(Expression), Outline(Expression), Scalable(Expression), Color(Expression), Scale(Expression), Dpi(Expression), Rgba(Expression), Lcdfilter(Expression), Minspace(Expression), Charset(Expression), Lang(Expression), Fontversion(Expression), Capability(Expression), Fontformat(Expression), Embolden(Expression), Embeddedbitmap(Expression), Decorative(Expression), Fontfeatures(Expression), Namelang(Expression), Prgname(Expression), Postscriptname(Expression), Fonthashint(Expression), Order(Expression), Matrix(Expression), PixelSizeFixupFactor(Expression), ScalingNotNeeded(Expression), Dynamic(String, Expression),
}

Variants§

§

Family(Expression)

Font family names

§

FamilyLang(Expression)

Languages corresponding to each family

§

Style(Expression)

Font style. Overrides weight and slant

§

StyleLang(Expression)

Languages corresponding to each style

§

FullName(Expression)

Font full names (often includes style)

§

FullNameLang(Expression)

Languages corresponding to each fullname

§

Slant(Expression)

Italic, oblique or roman

§

Weight(Expression)

Light, medium, demibold, bold or black

§

Size(Expression)

Point size

§

Width(Expression)

Condensed, normal or expanded

§

Aspect(Expression)

Stretches glyphs horizontally before hinting

§

PixelSize(Expression)

Pixel size

§

Spacing(Expression)

Proportional, dual-width, monospace or charcell

§

Foundry(Expression)

Font foundry name

§

Antialias(Expression)

Whether glyphs can be antialiased

§

Hinting(Expression)

Whether the rasterizer should use hinting

§

HintStyle(Expression)

Automatic hinting style

§

VerticalLayout(Expression)

Automatic hinting style

§

AutoHint(Expression)

Use autohinter instead of normal hinter

§

GlobalAdvance(Expression)

Use font global advance data (deprecated)

§

File(Expression)

The filename holding the font

§

Index(Expression)

The index of the font within the file

§

Rasterizer(Expression)

Which rasterizer is in use (deprecated)

§

Outline(Expression)

Whether the glyphs are outlines

§

Scalable(Expression)

Whether glyphs can be scaled

§

Color(Expression)

Whether any glyphs have color

§

Scale(Expression)

Scale factor for point->pixel conversions (deprecated)

§

Dpi(Expression)

Target dots per inch

§

Rgba(Expression)

unknown, rgb, bgr, vrgb, vbgr, none - subpixel geometry

§

Lcdfilter(Expression)

Type of LCD filter

§

Minspace(Expression)

Eliminate leading from line spacing

§

Charset(Expression)

Unicode chars encoded by the font

§

Lang(Expression)

List of RFC-3066-style languages this font supports

§

Fontversion(Expression)

Version number of the font

§

Capability(Expression)

List of layout capabilities in the font

§

Fontformat(Expression)

String name of the font format

§

Embolden(Expression)

Rasterizer should synthetically embolden the font

§

Embeddedbitmap(Expression)

Use the embedded bitmap instead of the outline

§

Decorative(Expression)

Whether the style is a decorative variant

§

Fontfeatures(Expression)

List of the feature tags in OpenType to be enabled

§

Namelang(Expression)

Language name to be used for the default value of familylang, stylelang, and fullnamelang

§

Prgname(Expression)

String Name of the running program

§

Postscriptname(Expression)

Font family name in PostScript

§

Fonthashint(Expression)

Whether the font has hinting

§

Order(Expression)

Order number of the font

§

Matrix(Expression)

§

PixelSizeFixupFactor(Expression)

§

ScalingNotNeeded(Expression)

§

Dynamic(String, Expression)

Implementations§

Trait Implementations§

source§

impl Clone for Property

source§

fn clone(&self) -> Property

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Property

source§

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

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

impl Default for Property

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl PartialEq for Property

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Property

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> 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,

§

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, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.