1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-22 21:01:36 +03:00

upgrade freetype to 2.11.1

refs: #1419
This commit is contained in:
Wez Furlong 2021-12-20 08:22:34 -07:00
parent b071ad8c45
commit baf879f4f8
3 changed files with 2 additions and 13 deletions

@ -1 +1 @@
Subproject commit 5bcaf51b611ce579c89c2bb423984ec89fdaadd7 Subproject commit 3f83daeecb1a78d851b660eed025eeba362c0e4a

View File

@ -26,6 +26,7 @@ As features stabilize some brief notes about them will accumulate here.
#### Updated and Improved #### Updated and Improved
* Bundled harfbuzz to 3.2.0 * Bundled harfbuzz to 3.2.0
* Bundled freetype to 2.11.1
* macos: removing the titlebar from `window_decorations` now preserves rounded window corners [#1034](https://github.com/wez/wezterm/issues/1034) * macos: removing the titlebar from `window_decorations` now preserves rounded window corners [#1034](https://github.com/wez/wezterm/issues/1034)
#### Fixed #### Fixed

View File

@ -600,18 +600,6 @@ impl Face {
FT_GlyphSlot_Embolden(slot as *mut _); FT_GlyphSlot_Embolden(slot as *mut _);
} }
if let Some(size) = self.size.as_ref() {
if !size.is_scaled {
// Non-scaled == bitmap, which doesn't need to be rendered.
// We check specially for this because freetype 2.11
// started to return an error in this case.
// <https://gitlab.freedesktop.org/freetype/freetype/-/issues/1076>
// This workaround can be removed when freetype 2.11.1
// is released and we upgrade to it.
return Ok(slot);
}
}
ft_result(FT_Render_Glyph(slot, render_mode), ()) ft_result(FT_Render_Glyph(slot, render_mode), ())
.context("load_and_render_glyph: FT_Render_Glyph")?; .context("load_and_render_glyph: FT_Render_Glyph")?;
Ok(slot) Ok(slot)