Enum bdf::Entry
[−]
[src]
pub enum Entry { StartFont(String), Comment(String), ContentVersion(String), Font(String), Size(u16, u16, u16), Chars(usize), FontBoundingBox(BoundingBox), EndFont, StartProperties(usize), Property(String, Property), EndProperties, StartChar(String), Encoding(char), Direction(Direction), ScalableWidth(u32, u32), DeviceWidth(u32, u32), AlternateScalableWidth(u32, u32), AlternateDeviceWidth(u32, u32), Vector(u32, u32), 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(u16, u16, u16)
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(String, Property)
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(u32, u32)
SWIDTH
contains the scalable width (x, y) of the glyph.
DeviceWidth(u32, u32)
DWIDTH
contains the device width (x, y) of the glyph.
AlternateScalableWidth(u32, u32)
SWIDTH1
contains the alternate scalable width (x, y) of the glyph.
AlternateDeviceWidth(u32, u32)
DWIDTH1
contains the alternate device width (x, y) of the glyph.
Vector(u32, u32)
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 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 !=
.
impl Eq for Entry
[src]
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