diff options
| author | Ayose <ayosec@gmail.com> | 2024-07-29 00:00:00 +0000 |
|---|---|---|
| committer | Ayose <ayosec@gmail.com> | 2024-07-29 00:00:00 +0000 |
| commit | 23c1b2fbcfdc84df806163ea26c5284e598cba2b (patch) | |
| tree | 9cb0c2c362105007efc6866bf1100f3e72831f94 /alacritty/src/renderer/text | |
| parent | 6c4910fd20c7bab08b3bcee00eed4b5e4b37ef08 (diff) | |
| parent | d021a7b6f871f4078073848cf8744881561eb254 (diff) | |
| download | r-alacritty-23c1b2fbcfdc84df806163ea26c5284e598cba2b.tar.gz r-alacritty-23c1b2fbcfdc84df806163ea26c5284e598cba2b.tar.bz2 r-alacritty-23c1b2fbcfdc84df806163ea26c5284e598cba2b.zip | |
Merge remote-tracking branch 'vendor/master' into graphics
Diffstat (limited to 'alacritty/src/renderer/text')
| -rw-r--r-- | alacritty/src/renderer/text/glyph_cache.rs | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/alacritty/src/renderer/text/glyph_cache.rs b/alacritty/src/renderer/text/glyph_cache.rs index 957cde1a..6acc3189 100644 --- a/alacritty/src/renderer/text/glyph_cache.rs +++ b/alacritty/src/renderer/text/glyph_cache.rs @@ -187,14 +187,9 @@ impl GlyphCache { /// /// This will fail when the glyph could not be rasterized. Usually this is due to the glyph /// not being present in any font. - pub fn get<L: ?Sized>( - &mut self, - glyph_key: GlyphKey, - loader: &mut L, - show_missing: bool, - ) -> Glyph + pub fn get<L>(&mut self, glyph_key: GlyphKey, loader: &mut L, show_missing: bool) -> Glyph where - L: LoadGlyph, + L: LoadGlyph + ?Sized, { // Try to load glyph from cache. if let Some(glyph) = self.cache.get(&glyph_key) { @@ -242,9 +237,9 @@ impl GlyphCache { /// Load glyph into the atlas. /// /// This will apply all transforms defined for the glyph cache to the rasterized glyph before - pub fn load_glyph<L: ?Sized>(&self, loader: &mut L, mut glyph: RasterizedGlyph) -> Glyph + pub fn load_glyph<L>(&self, loader: &mut L, mut glyph: RasterizedGlyph) -> Glyph where - L: LoadGlyph, + L: LoadGlyph + ?Sized, { glyph.left += i32::from(self.glyph_offset.x); glyph.top += i32::from(self.glyph_offset.y); |