From 8fb1c091ae7f65496f9618ddb2a319e00aad8f18 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 4 Jul 2022 15:26:42 -0700 Subject: [PATCH] update harfbuzz to 4.4.1 --- deps/harfbuzz/build.rs | 24 +++++++++--------- deps/harfbuzz/harfbuzz | 2 +- deps/harfbuzz/src/lib.rs | 54 +++++++++++++++++++++++++++++----------- docs/changelog.md | 3 +++ 4 files changed, 56 insertions(+), 27 deletions(-) diff --git a/deps/harfbuzz/build.rs b/deps/harfbuzz/build.rs index ba3e8f0fa..d04fa570b 100644 --- a/deps/harfbuzz/build.rs +++ b/deps/harfbuzz/build.rs @@ -49,18 +49,18 @@ fn harfbuzz() { "hb-ot-math.cc", "hb-ot-metrics.cc", "hb-ot-name.cc", - "hb-ot-shape-complex-arabic.cc", - "hb-ot-shape-complex-default.cc", - "hb-ot-shape-complex-hangul.cc", - "hb-ot-shape-complex-hebrew.cc", - "hb-ot-shape-complex-indic-table.cc", - "hb-ot-shape-complex-indic.cc", - "hb-ot-shape-complex-khmer.cc", - "hb-ot-shape-complex-myanmar.cc", - "hb-ot-shape-complex-syllabic.cc", - "hb-ot-shape-complex-thai.cc", - "hb-ot-shape-complex-use.cc", - "hb-ot-shape-complex-vowel-constraints.cc", + "hb-ot-shaper-arabic.cc", + "hb-ot-shaper-default.cc", + "hb-ot-shaper-hangul.cc", + "hb-ot-shaper-hebrew.cc", + "hb-ot-shaper-indic-table.cc", + "hb-ot-shaper-indic.cc", + "hb-ot-shaper-khmer.cc", + "hb-ot-shaper-myanmar.cc", + "hb-ot-shaper-syllabic.cc", + "hb-ot-shaper-thai.cc", + "hb-ot-shaper-use.cc", + "hb-ot-shaper-vowel-constraints.cc", "hb-ot-shape-fallback.cc", "hb-ot-shape-normalize.cc", "hb-ot-shape.cc", diff --git a/deps/harfbuzz/harfbuzz b/deps/harfbuzz/harfbuzz index aee123fc8..096aaa62a 160000 --- a/deps/harfbuzz/harfbuzz +++ b/deps/harfbuzz/harfbuzz @@ -1 +1 @@ -Subproject commit aee123fc83388b8f5acfb301d87bd92eccc5b843 +Subproject commit 096aaa62a6e0d07c02a4894fc036efc927e5aaf9 diff --git a/deps/harfbuzz/src/lib.rs b/deps/harfbuzz/src/lib.rs index 83c9b3c06..17f0e867e 100644 --- a/deps/harfbuzz/src/lib.rs +++ b/deps/harfbuzz/src/lib.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.59.2 */ +/* automatically generated by rust-bindgen 0.60.1 */ #![allow(non_snake_case)] #![allow(non_camel_case_types)] @@ -6,6 +6,12 @@ #![allow(clippy::unreadable_literal)] #![allow(clippy::upper_case_acronyms)] +pub type __int8_t = ::std::os::raw::c_schar; +pub type __uint8_t = ::std::os::raw::c_uchar; +pub type __int16_t = ::std::os::raw::c_short; +pub type __uint16_t = ::std::os::raw::c_ushort; +pub type __int32_t = ::std::os::raw::c_int; +pub type __uint32_t = ::std::os::raw::c_uint; pub type hb_bool_t = ::std::os::raw::c_int; pub type hb_codepoint_t = u32; pub type hb_position_t = i32; @@ -767,6 +773,9 @@ extern "C" { extern "C" { pub fn hb_set_is_equal(set: *const hb_set_t, other: *const hb_set_t) -> hb_bool_t; } +extern "C" { + pub fn hb_set_hash(set: *const hb_set_t) -> ::std::os::raw::c_uint; +} extern "C" { pub fn hb_set_is_subset(set: *const hb_set_t, larger_set: *const hb_set_t) -> hb_bool_t; } @@ -867,7 +876,7 @@ extern "C" { } extern "C" { pub fn hb_face_get_user_data( - face: *const hb_face_t, + face: *mut hb_face_t, key: *mut hb_user_data_key_t, ) -> *mut ::std::os::raw::c_void; } @@ -1725,6 +1734,12 @@ extern "C" { extern "C" { pub fn hb_font_is_immutable(font: *mut hb_font_t) -> hb_bool_t; } +extern "C" { + pub fn hb_font_get_serial(font: *mut hb_font_t) -> ::std::os::raw::c_uint; +} +extern "C" { + pub fn hb_font_changed(font: *mut hb_font_t); +} extern "C" { pub fn hb_font_set_parent(font: *mut hb_font_t, parent: *mut hb_font_t); } @@ -1935,7 +1950,7 @@ extern "C" { ); } extern "C" { - pub fn hb_buffer_get_content_type(buffer: *mut hb_buffer_t) -> hb_buffer_content_type_t; + pub fn hb_buffer_get_content_type(buffer: *const hb_buffer_t) -> hb_buffer_content_type_t; } extern "C" { pub fn hb_buffer_set_unicode_funcs( @@ -1944,25 +1959,25 @@ extern "C" { ); } extern "C" { - pub fn hb_buffer_get_unicode_funcs(buffer: *mut hb_buffer_t) -> *mut hb_unicode_funcs_t; + pub fn hb_buffer_get_unicode_funcs(buffer: *const hb_buffer_t) -> *mut hb_unicode_funcs_t; } extern "C" { pub fn hb_buffer_set_direction(buffer: *mut hb_buffer_t, direction: hb_direction_t); } extern "C" { - pub fn hb_buffer_get_direction(buffer: *mut hb_buffer_t) -> hb_direction_t; + pub fn hb_buffer_get_direction(buffer: *const hb_buffer_t) -> hb_direction_t; } extern "C" { pub fn hb_buffer_set_script(buffer: *mut hb_buffer_t, script: hb_script_t); } extern "C" { - pub fn hb_buffer_get_script(buffer: *mut hb_buffer_t) -> hb_script_t; + pub fn hb_buffer_get_script(buffer: *const hb_buffer_t) -> hb_script_t; } extern "C" { pub fn hb_buffer_set_language(buffer: *mut hb_buffer_t, language: hb_language_t); } extern "C" { - pub fn hb_buffer_get_language(buffer: *mut hb_buffer_t) -> hb_language_t; + pub fn hb_buffer_get_language(buffer: *const hb_buffer_t) -> hb_language_t; } extern "C" { pub fn hb_buffer_set_segment_properties( @@ -1972,7 +1987,7 @@ extern "C" { } extern "C" { pub fn hb_buffer_get_segment_properties( - buffer: *mut hb_buffer_t, + buffer: *const hb_buffer_t, props: *mut hb_segment_properties_t, ); } @@ -1990,12 +2005,13 @@ pub enum hb_buffer_flags_t { HB_BUFFER_FLAG_DO_NOT_INSERT_DOTTED_CIRCLE = 16, HB_BUFFER_FLAG_VERIFY = 32, HB_BUFFER_FLAG_PRODUCE_UNSAFE_TO_CONCAT = 64, + HB_BUFFER_FLAG_DEFINED = 127, } extern "C" { pub fn hb_buffer_set_flags(buffer: *mut hb_buffer_t, flags: hb_buffer_flags_t); } extern "C" { - pub fn hb_buffer_get_flags(buffer: *mut hb_buffer_t) -> hb_buffer_flags_t; + pub fn hb_buffer_get_flags(buffer: *const hb_buffer_t) -> hb_buffer_flags_t; } impl hb_buffer_cluster_level_t { pub const HB_BUFFER_CLUSTER_LEVEL_DEFAULT: hb_buffer_cluster_level_t = @@ -2015,7 +2031,7 @@ extern "C" { ); } extern "C" { - pub fn hb_buffer_get_cluster_level(buffer: *mut hb_buffer_t) -> hb_buffer_cluster_level_t; + pub fn hb_buffer_get_cluster_level(buffer: *const hb_buffer_t) -> hb_buffer_cluster_level_t; } extern "C" { pub fn hb_buffer_set_replacement_codepoint( @@ -2024,19 +2040,19 @@ extern "C" { ); } extern "C" { - pub fn hb_buffer_get_replacement_codepoint(buffer: *mut hb_buffer_t) -> hb_codepoint_t; + pub fn hb_buffer_get_replacement_codepoint(buffer: *const hb_buffer_t) -> hb_codepoint_t; } extern "C" { pub fn hb_buffer_set_invisible_glyph(buffer: *mut hb_buffer_t, invisible: hb_codepoint_t); } extern "C" { - pub fn hb_buffer_get_invisible_glyph(buffer: *mut hb_buffer_t) -> hb_codepoint_t; + pub fn hb_buffer_get_invisible_glyph(buffer: *const hb_buffer_t) -> hb_codepoint_t; } extern "C" { pub fn hb_buffer_set_not_found_glyph(buffer: *mut hb_buffer_t, not_found: hb_codepoint_t); } extern "C" { - pub fn hb_buffer_get_not_found_glyph(buffer: *mut hb_buffer_t) -> hb_codepoint_t; + pub fn hb_buffer_get_not_found_glyph(buffer: *const hb_buffer_t) -> hb_codepoint_t; } extern "C" { pub fn hb_buffer_clear_contents(buffer: *mut hb_buffer_t); @@ -2130,7 +2146,7 @@ extern "C" { ) -> hb_bool_t; } extern "C" { - pub fn hb_buffer_get_length(buffer: *mut hb_buffer_t) -> ::std::os::raw::c_uint; + pub fn hb_buffer_get_length(buffer: *const hb_buffer_t) -> ::std::os::raw::c_uint; } extern "C" { pub fn hb_buffer_get_glyph_infos( @@ -2160,6 +2176,7 @@ pub enum hb_buffer_serialize_flags_t { HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS = 8, HB_BUFFER_SERIALIZE_FLAG_GLYPH_FLAGS = 16, HB_BUFFER_SERIALIZE_FLAG_NO_ADVANCES = 32, + HB_BUFFER_SERIALIZE_FLAG_DEFINED = 63, } #[repr(u32)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -2389,6 +2406,9 @@ extern "C" { extern "C" { pub fn hb_map_allocation_successful(map: *const hb_map_t) -> hb_bool_t; } +extern "C" { + pub fn hb_map_copy(map: *const hb_map_t) -> *mut hb_map_t; +} extern "C" { pub fn hb_map_clear(map: *mut hb_map_t); } @@ -2401,6 +2421,9 @@ extern "C" { extern "C" { pub fn hb_map_is_equal(map: *const hb_map_t, other: *const hb_map_t) -> hb_bool_t; } +extern "C" { + pub fn hb_map_hash(map: *const hb_map_t) -> ::std::os::raw::c_uint; +} extern "C" { pub fn hb_map_set(map: *mut hb_map_t, key: hb_codepoint_t, value: hb_codepoint_t); } @@ -2909,6 +2932,9 @@ extern "C" { extern "C" { pub fn hb_ft_font_changed(font: *mut hb_font_t); } +extern "C" { + pub fn hb_ft_hb_font_changed(font: *mut hb_font_t) -> hb_bool_t; +} extern "C" { pub fn hb_ft_font_set_funcs(font: *mut hb_font_t); } diff --git a/docs/changelog.md b/docs/changelog.md index 8bf3e2e17..3ef8ecd62 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -23,6 +23,9 @@ As features stabilize some brief notes about them will accumulate here. * Config will now automatically reload after error. Previously, you would need to manually reload the config using [ReloadConfiguration](config/lua/keyassignment/ReloadConfiguration.md). [#1174](https://github.com/wez/wezterm/issues/1174) * Config will now automatically reload for changes made to `require`d lua files. Previously, only the main config file and any files that you explicitly passed to [add_to_config_reload_watch_list](config/lua/wezterm/add_to_config_reload_watch_list.md) would trigger a reload. +#### Updated +* Bundled harfbuzz to 4.4.1 + ### 20220624-141144-bd1b7c5d #### New