[][src]Struct fonterator::FontGroup

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

A FontGroup is a collection of fonts that together should cover all of the unicode codepoints.

Methods

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

pub fn new() -> Self[src]

Create a new FontGroup

pub fn add<B: Into<SharedBytes<'a>>>(self, bytes: B) -> Result<Self, Error>[src]

Add a Font or FontCollection to the FontGroup

Important traits for &'_ mut PathIterator<'a>
pub fn render<T: ToString>(
    &self,
    text: T,
    xy: (f32, f32),
    wh: (f32, f32)
) -> PathIterator
[src]

Render a string.

pub fn multilingual_mono(self, index: usize) -> Self[src]

Enable Multi-Lingual Monospace (2 Latin Letters per CJK Character).

The index refers to which font to get the CJK character width from, so it should be a font with CJK support (otherwise it won't work).

Trait Implementations

impl<'a> Default for FontGroup<'a>[src]

Auto Trait Implementations

impl<'a> Send for FontGroup<'a>

impl<'a> Sync for FontGroup<'a>

Blanket Implementations

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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]