Enum fontconfig_parser::PropertyKind

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

Variants§

§

Family

Font family names

§

FamilyLang

Languages corresponding to each family

§

Style

Font style. Overrides weight and slant

§

StyleLang

Languages corresponding to each style

§

FullName

Font full names (often includes style)

§

FullNameLang

Languages corresponding to each fullname

§

Slant

Italic, oblique or roman

§

Weight

Light, medium, demibold, bold or black

§

Size

Point size

§

Width

Condensed, normal or expanded

§

Aspect

Stretches glyphs horizontally before hinting

§

PixelSize

Pixel size

§

Spacing

Proportional, dual-width, monospace or charcell

§

Foundry

Font foundry name

§

Antialias

Whether glyphs can be antialiased

§

Hinting

Whether the rasterizer should use hinting

§

HintStyle

Automatic hinting style

§

VerticalLayout

Automatic hinting style

§

AutoHint

Use autohinter instead of normal hinter

§

GlobalAdvance

Use font global advance data (deprecated)

§

File

The filename holding the font

§

Index

The index of the font within the file

§

Rasterizer

Which rasterizer is in use (deprecated)

§

Outline

Whether the glyphs are outlines

§

Scalable

Whether glyphs can be scaled

§

Color

Whether any glyphs have color

§

Scale

Scale factor for point->pixel conversions (deprecated)

§

Dpi

Target dots per inch

§

Rgba

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

§

Lcdfilter

Type of LCD filter

§

Minspace

Eliminate leading from line spacing

§

Charset

Unicode chars encoded by the font

§

Lang

List of RFC-3066-style languages this font supports

§

Fontversion

Version number of the font

§

Capability

List of layout capabilities in the font

§

Fontformat

String name of the font format

§

Embolden

Rasterizer should synthetically embolden the font

§

Embeddedbitmap

Use the embedded bitmap instead of the outline

§

Decorative

Whether the style is a decorative variant

§

Fontfeatures

List of the feature tags in OpenType to be enabled

§

Namelang

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

§

Prgname

String Name of the running program

§

Postscriptname

Font family name in PostScript

§

Fonthashint

Whether the font has hinting

§

Order

Order number of the font

§

Matrix

§

PixelSizeFixupFactor

§

ScalingNotNeeded

§

Dynamic(String)

Implementations§

Trait Implementations§

source§

impl Clone for PropertyKind

source§

fn clone(&self) -> PropertyKind

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 PropertyKind

source§

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

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

impl Default for PropertyKind

source§

fn default() -> Self

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

impl FromStr for PropertyKind

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<PropertyKind>

Parses a string s to return a value of this type. Read more
source§

impl PartialEq for PropertyKind

source§

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

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

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

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

impl Eq for PropertyKind

source§

impl StructuralPartialEq for PropertyKind

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> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.