Struct bdf::Font
[−]
[src]
pub struct Font { /* 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<String, Property>
Gets the properties.
fn properties_mut(&mut self) -> &mut HashMap<String, Property>
Gets a mutable reference to the properties.
fn glyphs(&self) -> &HashMap<char, Glyph>
Gets the glyphs.
fn glyphs_mut(&mut self) -> &mut HashMap<char, Glyph>
Gets a mutable reference to the glyphs.