Struct bdf::Font [] [src]

pub struct Font {
    // some fields omitted
}

A BDF font.

Methods

impl Font
[src]

fn new<T: Into<String>>(name: T, version: Option<T>) -> Self

Create a new font with the given name and content-version.

fn validate(&self) -> bool

Validates the definition.

fn format(&self) -> &str

Gets BDF format version.

fn set_format<T: Into<String>>(&mut self, format: T)

Sets the BDF format version.

fn name(&self) -> &str

Gets the name.

fn set_name<T: Into<String>>(&mut self, name: T)

Sets the name.

fn version(&self) -> Option<&str>

Gets the content-version.

fn set_version<T: Into<String>>(&mut self, version: Option<T>)

Sets the content-version.

fn size(&self) -> &Size

Gets the size.

fn set_size(&mut self, size: Size)

Sets the size.

fn bounds(&self) -> &BoundingBox

Gets the default bounding box.

fn set_bounds(&mut self, bounds: BoundingBox)

Sets the default bounding box.

fn direction(&self) -> Direction

Gets the default direction.

fn set_direction(&mut self, direction: Direction)

Sets the default direction.

fn scalable_width(&self) -> Option<&(u32, u32)>

Gets the default scalable width.

fn set_scalable_width(&mut self, value: Option<(u32, u32)>)

Sets the default scalable width.

fn device_width(&self) -> Option<&(u32, u32)>

Gets the default device width.

fn set_device_width(&mut self, value: Option<(u32, u32)>)

Sets the default device width.

fn alternate_scalable_width(&self) -> Option<&(u32, u32)>

Gets the default alternate scalable width.

fn set_alternate_scalable_width(&mut self, value: Option<(u32, u32)>)

Sets the default alternate scalable width.

fn alternate_device_width(&self) -> Option<&(u32, u32)>

Gets the default alternate device width.

fn set_alternate_device_width(&mut self, value: Option<(u32, u32)>)

Sets the default alternate device width.

fn vector(&self) -> Option<&(u32, u32)>

Gets the default offset vector.

fn set_vector(&mut self, value: Option<(u32, u32)>)

Sets the default offset vector.

fn properties(&self) -> &HashMap<StringProperty>

Gets the properties.

fn properties_mut(&mut self) -> &mut HashMap<StringProperty>

Gets a mutable reference to the properties.

fn glyphs(&self) -> &HashMap<charGlyph>

Gets the glyphs.

fn glyphs_mut(&mut self) -> &mut HashMap<charGlyph>

Gets a mutable reference to the glyphs.

Trait Implementations

impl Debug for Font
[src]

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

Formats the value using the given formatter.

impl Default for Font
[src]

fn default() -> Self

Returns the "default value" for a type. Read more