[][src]Struct bdf::Font

pub struct Font { /* fields omitted */ }

A BDF font.

Implementations

impl Font[src]

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

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

pub fn validate(&self) -> bool[src]

Validates the definition.

pub fn format(&self) -> &str[src]

Gets BDF format version.

pub fn set_format<T: Into<String>>(&mut self, format: T)[src]

Sets the BDF format version.

pub fn name(&self) -> &str[src]

Gets the name.

pub fn set_name<T: Into<String>>(&mut self, name: T)[src]

Sets the name.

pub fn version(&self) -> Option<&str>[src]

Gets the content-version.

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

Sets the content-version.

pub fn size(&self) -> &Size[src]

Gets the size.

pub fn set_size(&mut self, size: Size)[src]

Sets the size.

pub fn bounds(&self) -> &BoundingBox[src]

Gets the default bounding box.

pub fn set_bounds(&mut self, bounds: BoundingBox)[src]

Sets the default bounding box.

pub fn direction(&self) -> Direction[src]

Gets the default direction.

pub fn set_direction(&mut self, direction: Direction)[src]

Sets the default direction.

pub fn scalable_width(&self) -> Option<&(u32, u32)>[src]

Gets the default scalable width.

pub fn set_scalable_width(&mut self, value: Option<(u32, u32)>)[src]

Sets the default scalable width.

pub fn device_width(&self) -> Option<&(u32, u32)>[src]

Gets the default device width.

pub fn set_device_width(&mut self, value: Option<(u32, u32)>)[src]

Sets the default device width.

pub fn alternate_scalable_width(&self) -> Option<&(u32, u32)>[src]

Gets the default alternate scalable width.

pub fn set_alternate_scalable_width(&mut self, value: Option<(u32, u32)>)[src]

Sets the default alternate scalable width.

pub fn alternate_device_width(&self) -> Option<&(u32, u32)>[src]

Gets the default alternate device width.

pub fn set_alternate_device_width(&mut self, value: Option<(u32, u32)>)[src]

Sets the default alternate device width.

pub fn vector(&self) -> Option<&(u32, u32)>[src]

Gets the default offset vector.

pub fn set_vector(&mut self, value: Option<(u32, u32)>)[src]

Sets the default offset vector.

pub fn properties(&self) -> &HashMap<String, Property>[src]

Gets the properties.

pub fn properties_mut(&mut self) -> &mut HashMap<String, Property>[src]

Gets a mutable reference to the properties.

pub fn glyphs(&self) -> &HashMap<char, Glyph>[src]

Gets the glyphs.

pub fn glyphs_mut(&mut self) -> &mut HashMap<char, Glyph>[src]

Gets a mutable reference to the glyphs.

Trait Implementations

impl Debug for Font[src]

impl Default for Font[src]

Auto Trait Implementations

impl RefUnwindSafe for Font

impl Send for Font

impl Sync for Font

impl Unpin for Font

impl UnwindSafe for Font

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, 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.