[−][src]Struct fumarole::FontTexture
Methods
impl FontTexture
[src]
pub fn ascii_character_list() -> Vec<char>
[src]
Vec
pub fn new<R, F, I>(
_facade: &F,
font: R,
font_size: u32,
characters_list: I
) -> Result<(RawImage2d<f32>, HashMap<char, CharacterInfos>), Error> where
R: Read,
F: Facade,
I: IntoIterator<Item = char>,
[src]
_facade: &F,
font: R,
font_size: u32,
characters_list: I
) -> Result<(RawImage2d<f32>, HashMap<char, CharacterInfos>), Error> where
R: Read,
F: Facade,
I: IntoIterator<Item = char>,
Creates a new texture representing a font stored in a FontTexture
.
This function is very expensive as it needs to rasterize font into a
texture. Complexity grows as font_size**2 * characters_list.len()
.
Avoid rasterizing everything at once as it will be slow and end up in
out of memory abort.
Auto Trait Implementations
impl RefUnwindSafe for FontTexture
impl Send for FontTexture
impl Sync for FontTexture
impl Unpin for FontTexture
impl UnwindSafe for FontTexture
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
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>,