Struct gfx_glyph::GlyphCalculatorBuilder [] [src]

pub struct GlyphCalculatorBuilder<'a> { /* fields omitted */ }

Builder for a GlyphCalculator.

Example

extern crate gfx_glyph;
use gfx_glyph::GlyphCalculatorBuilder;

let dejavu: &[u8] = include_bytes!("../examples/DejaVuSans.ttf");
let mut glyphs = GlyphCalculatorBuilder::using_font_bytes(dejavu).build();

Methods

impl<'a> GlyphCalculatorBuilder<'a>
[src]

[src]

Specifies the default font data used to render glyphs. Referenced with FontId(0), which is default.

[src]

[src]

Specifies the default font used to render glyphs. Referenced with FontId(0), which is default.

[src]

[src]

Adds additional fonts to the one added in using_font / using_font_bytes. Returns a FontId to reference this font.

[src]

Adds additional fonts to the one added in using_font / using_font_bytes. Returns a FontId to reference this font.

[src]

Builds a GlyphCalculator

Trait Implementations

Auto Trait Implementations

impl<'a> Send for GlyphCalculatorBuilder<'a>

impl<'a> Sync for GlyphCalculatorBuilder<'a>