[−][src]Struct alacritty::renderer::GlyphCache
Naïve glyph cache
Currently only keyed by char, and thus not possible to hold different
representations of the same code point.
Methods
impl GlyphCache[src]
pub fn new<L>(
rasterizer: Rasterizer,
font: &Font,
loader: &mut L
) -> Result<GlyphCache, Error> where
L: LoadGlyph, [src]
rasterizer: Rasterizer,
font: &Font,
loader: &mut L
) -> Result<GlyphCache, Error> where
L: LoadGlyph,
pub fn font_metrics(&self) -> Metrics[src]
pub fn get<'a, L>(
&'a mut self,
glyph_key: GlyphKey,
loader: &mut L
) -> &'a Glyph where
L: LoadGlyph, [src]
&'a mut self,
glyph_key: GlyphKey,
loader: &mut L
) -> &'a Glyph where
L: LoadGlyph,
pub fn update_font_size<L: LoadGlyph>(
&mut self,
font: &Font,
size: Size,
dpr: f64,
loader: &mut L
) -> Result<(), Error>[src]
&mut self,
font: &Font,
size: Size,
dpr: f64,
loader: &mut L
) -> Result<(), Error>
pub fn static_metrics(config: &Config, dpr: f32) -> Result<Metrics, Error>[src]
Auto Trait Implementations
impl Send for GlyphCache
impl !Sync for GlyphCache
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto 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> SetParameter for T[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>, [src]
T: Parameter<Self>,
Sets value as a parameter of self.