[−][src]Struct fonterator::FontGroup
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]
ⓘImportant traits for &'_ mut PathIterator<'a>
&self,
text: T,
xy: (f32, f32),
wh: (f32, f32)
) -> PathIterator
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
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,