Enum bdf::Entry [] [src]

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 Debug for Entry
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Entry
[src]

fn clone(&self) -> Entry

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Eq for Entry
[src]

impl PartialEq for Entry
[src]

fn eq(&self, __arg_0: &Entry) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Entry) -> bool

This method tests for !=.