deps: Upgrade to freetype 2.11
This commit is contained in:
1 parent
0ebccbfab2
commit
f648d8a6a5
4 files changed
+18
-2
No files matched your search
Vendored
+4
@@ -189,6 +189,10 @@ fn freetype() {
|
||||
"pshinter/pshinter.c",
|
||||
"psnames/psnames.c",
|
||||
"raster/raster.c",
|
||||
"sdf/ftbsdf.c",
|
||||
"sdf/ftsdf.c",
|
||||
"sdf/ftsdfcommon.c",
|
||||
"sdf/ftsdfrend.c",
|
||||
"sfnt/sfnt.c",
|
||||
"smooth/smooth.c",
|
||||
"truetype/truetype.c",
|
||||
|
||||
Vendored
+1
-1
Submodule deps/freetype/freetype2 updated: 6a2b3e4007...801cd842e2.
+1
-1
@@ -21,7 +21,7 @@ As features stabilize some brief notes about them will accumulate here.
|
||||
* New: X11 now supports IME. It currently defaults to disabled, but you can set `use_ime = true` in your config to enable it (you need to restart wezterm for this to take effect). Many thanks to [@H-M-H](https://github.com/H-M-H) for bringing xcb-imdkit to Rust and implementing this in wezterm! [#250](https://github.com/wez/wezterm/issues/250) [#1043](https://github.com/wez/wezterm/pull/1043)
|
||||
* New: it is now possible to define colors in the range 16-255 in `colors` and color scheme definitions. Thanks to [@potamides](https://github.com/potamides)! [#841](https://github.com/wez/wezterm/issues/841) [#1056](https://github.com/wez/wezterm/pull/1056)
|
||||
* Fixed: X11: laggy input after selecting text. [#1027](https://github.com/wez/wezterm/issues/1027)
|
||||
* Updated: bundled harfbuzz to version 3.0.0
|
||||
* Updated: bundled harfbuzz to version 3.0.0, bundled freetype to 2.11
|
||||
* Changed: X11: we now allow matching visuals with >= 8 bits per rgb value. Previously, we only matched exactly 8 bits. This improve compatibility with systems that have the COMPOSITE extension disabled. Thanks to [@shizeeg](https://github.com/shizeeg)! [#1083](https://github.com/wez/wezterm/pull/1083)
|
||||
* Fixed: macOS: `send_composed_key_when_left_alt_is_pressed` and `send_composed_key_when_right_alt_is_pressed` are now respected when `use_ime=true`. Thanks to [@jakelinnzy](https://github.com/jakelinnzy)! [#1096](https://github.com/wez/wezterm/pull/1096)
|
||||
* Fixed: X11: jittery resize with some window managers [#1051](https://github.com/wez/wezterm/issues/1051)
|
||||
|
||||
@@ -472,6 +472,18 @@ impl Face {
|
||||
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), ())
|
||||
.context("load_and_render_glyph: FT_Render_Glyph")?;
|
||||
Ok(slot)
|
||||
|
||||
Reference in new issue
Block a user