Struct bmfont::BMFont [] [src]

pub struct BMFont {
    // some fields omitted
}

Methods

impl BMFont
[src]

fn new<R>(source: R, ordinate_orientation: OrdinateOrientation) -> Result<BMFontError> where R: Read

fn base_height(&self) -> u32

Returns the height of a EM in pixels.

fn line_height(&self) -> u32

fn pages(&self) -> Vec<String>

fn parse(&self, s: &str) -> Result<Vec<CharPosition>, StringParseError>

Trait Implementations

impl Debug for BMFont
[src]

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

Formats the value using the given formatter.

impl Clone for BMFont
[src]

fn clone(&self) -> BMFont

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