[][src]Enum bdf::Entry

pub enum Entry {
    StartFont(String),
    Comment(String),
    ContentVersion(String),
    Font(String),
    Size(u16u16u16),
    Chars(usize),
    FontBoundingBox(BoundingBox),
    EndFont,
    StartProperties(usize),
    Property(StringProperty),
    EndProperties,
    StartChar(String),
    Encoding(char),
    Direction(Direction),
    ScalableWidth(u32u32),
    DeviceWidth(u32u32),
    AlternateScalableWidth(u32u32),
    AlternateDeviceWidth(u32u32),
    Vector(u32u32),
    BoundingBox(BoundingBox),
    Bitmap(Bitmap),
    EndChar,
    Unknown(String),
}

The possible entries in BDF.

Variants

StartFont(String)

STARTFONT marks the beginning of the font declaration and contains the BDF version.

Comment(String)

COMMENT contains the comment body.

ContentVersion(String)

CONTENTVERSION contains the font version.

Font(String)

FONT contains the font name.

Size(u16u16u16)

SIZE contains the pt size, X-axis DPI and Y-axis DPI.

Chars(usize)

CHARS contains the number of characters stored.

FontBoundingBox(BoundingBox)

FONTBOUNDINGBOX contains the default bounding box.

EndFont

ENDFONT marks the end of the font declaration.

StartProperties(usize)

STARTPROPERTIES marks the beginning of the property declarations and contains the number of properties.

Property(StringProperty)

Contains the name and value of a property.

EndProperties

ENDPROPERTIES marks the end of the property declarations.

StartChar(String)

STARTCHAR marks the beginning of the character declaration and contains the name of the character.

Encoding(char)

ENCODING contains the codepoint for the glyph.

Direction(Direction)

METRICSSET contains the direction for the glyph.

ScalableWidth(u32u32)

SWIDTH contains the scalable width (x, y) of the glyph.

DeviceWidth(u32u32)

DWIDTH contains the device width (x, y) of the glyph.

AlternateScalableWidth(u32u32)

SWIDTH1 contains the alternate scalable width (x, y) of the glyph.

AlternateDeviceWidth(u32u32)

DWIDTH1 contains the alternate device width (x, y) of the glyph.

Vector(u32u32)

VVECTOR contains the vector offset for the glyph.

BoundingBox(BoundingBox)

BBX contains the bounds for the glyph.

Bitmap(Bitmap)

BITMAP contains the bits of the glyph.

EndChar

ENDCHAR marks the end of the character declaration.

Unknown(String)

Contains the unknown id.

Trait Implementations

impl Clone for Entry[src]

impl Debug for Entry[src]

impl Eq for Entry[src]

impl PartialEq<Entry> for Entry[src]

impl StructuralEq for Entry[src]

impl StructuralPartialEq for Entry[src]

Auto Trait Implementations

impl RefUnwindSafe for Entry

impl Send for Entry

impl Sync for Entry

impl Unpin for Entry

impl UnwindSafe for Entry

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.