glyph_brush_layout
Text layout for rusttype.
- Generic positioning & linebreaking traits.
- Built-in layout logic:
- Mixed font, scale, color sections in a single layout.
- Horizontal align left/center/right.
- Vertical align top/center/bottom.
- Unicode line breaking.
- Bounded layouts.
use *;
let dejavu = from_bytes?;
let garamond = from_bytes?;
// Simple vec font mapping: FontId(0) -> deja vu sans, FontId(1) -> garamond
let fonts = vec!;
// Layout "hello glyph_brush_layout" on an unbounded line with the second
// word suitably bigger, greener and serif-ier.
let glyphs = default.calculate_glyphs;
assert_eq!;
let = &glyphs;
assert_eq!;
assert_eq!;
assert_eq!;
let = &glyphs;
assert_eq!;
assert_eq!;
assert_eq!;