diff --git a/deps/harfbuzz/harfbuzz b/deps/harfbuzz/harfbuzz index 4584bcdc3..b4305532a 160000 --- a/deps/harfbuzz/harfbuzz +++ b/deps/harfbuzz/harfbuzz @@ -1 +1 @@ -Subproject commit 4584bcdc326564829d3cee3572386c90e4fd1974 +Subproject commit b4305532a7746422e0b615eee6304119c1092fd8 diff --git a/deps/harfbuzz/src/lib.rs b/deps/harfbuzz/src/lib.rs index 20e479df3..8a5c27a9a 100644 --- a/deps/harfbuzz/src/lib.rs +++ b/deps/harfbuzz/src/lib.rs @@ -1909,16 +1909,6 @@ pub type hb_font_get_glyph_from_name_func_t = ::std::option::Option< user_data: *mut ::std::os::raw::c_void, ) -> hb_bool_t, >; -pub type hb_font_get_glyph_shape_func_t = ::std::option::Option< - unsafe extern "C" fn( - font: *mut hb_font_t, - font_data: *mut ::std::os::raw::c_void, - glyph: hb_codepoint_t, - draw_funcs: *mut hb_draw_funcs_t, - draw_data: *mut ::std::os::raw::c_void, - user_data: *mut ::std::os::raw::c_void, - ), ->; pub type hb_font_draw_glyph_func_t = ::std::option::Option< unsafe extern "C" fn( font: *mut hb_font_t, @@ -2069,14 +2059,6 @@ extern "C" { destroy: hb_destroy_func_t, ); } -extern "C" { - pub fn hb_font_funcs_set_glyph_shape_func( - ffuncs: *mut hb_font_funcs_t, - func: hb_font_get_glyph_shape_func_t, - user_data: *mut ::std::os::raw::c_void, - destroy: hb_destroy_func_t, - ); -} extern "C" { pub fn hb_font_funcs_set_draw_glyph_func( ffuncs: *mut hb_font_funcs_t, @@ -2217,14 +2199,6 @@ extern "C" { glyph: *mut hb_codepoint_t, ) -> hb_bool_t; } -extern "C" { - pub fn hb_font_get_glyph_shape( - font: *mut hb_font_t, - glyph: hb_codepoint_t, - dfuncs: *mut hb_draw_funcs_t, - draw_data: *mut ::std::os::raw::c_void, - ); -} extern "C" { pub fn hb_font_draw_glyph( font: *mut hb_font_t, @@ -3046,6 +3020,32 @@ extern "C" { bottom_glyph: hb_codepoint_t, ) -> hb_position_t; } +pub type hb_font_get_glyph_shape_func_t = ::std::option::Option< + unsafe extern "C" fn( + font: *mut hb_font_t, + font_data: *mut ::std::os::raw::c_void, + glyph: hb_codepoint_t, + draw_funcs: *mut hb_draw_funcs_t, + draw_data: *mut ::std::os::raw::c_void, + user_data: *mut ::std::os::raw::c_void, + ), +>; +extern "C" { + pub fn hb_font_funcs_set_glyph_shape_func( + ffuncs: *mut hb_font_funcs_t, + func: hb_font_get_glyph_shape_func_t, + user_data: *mut ::std::os::raw::c_void, + destroy: hb_destroy_func_t, + ); +} +extern "C" { + pub fn hb_font_get_glyph_shape( + font: *mut hb_font_t, + glyph: hb_codepoint_t, + dfuncs: *mut hb_draw_funcs_t, + draw_data: *mut ::std::os::raw::c_void, + ); +} extern "C" { pub fn hb_shape( font: *mut hb_font_t, @@ -4104,6 +4104,24 @@ extern "C" { characters: *mut hb_codepoint_t, ) -> ::std::os::raw::c_uint; } +extern "C" { + pub fn hb_ot_layout_get_font_extents( + font: *mut hb_font_t, + direction: hb_direction_t, + script_tag: hb_tag_t, + language_tag: hb_tag_t, + extents: *mut hb_font_extents_t, + ) -> hb_bool_t; +} +extern "C" { + pub fn hb_ot_layout_get_font_extents2( + font: *mut hb_font_t, + direction: hb_direction_t, + script: hb_script_t, + language: hb_language_t, + extents: *mut hb_font_extents_t, + ) -> hb_bool_t; +} #[repr(u32)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum hb_ot_layout_baseline_tag_t { @@ -4133,6 +4151,16 @@ extern "C" { coord: *mut hb_position_t, ) -> hb_bool_t; } +extern "C" { + pub fn hb_ot_layout_get_baseline2( + font: *mut hb_font_t, + baseline_tag: hb_ot_layout_baseline_tag_t, + direction: hb_direction_t, + script: hb_script_t, + language: hb_language_t, + coord: *mut hb_position_t, + ) -> hb_bool_t; +} extern "C" { pub fn hb_ot_layout_get_baseline_with_fallback( font: *mut hb_font_t, @@ -4143,6 +4171,16 @@ extern "C" { coord: *mut hb_position_t, ); } +extern "C" { + pub fn hb_ot_layout_get_baseline_with_fallback2( + font: *mut hb_font_t, + baseline_tag: hb_ot_layout_baseline_tag_t, + direction: hb_direction_t, + script: hb_script_t, + language: hb_language_t, + coord: *mut hb_position_t, + ); +} #[repr(u32)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum hb_ot_math_constant_t { diff --git a/docs/changelog.md b/docs/changelog.md index 241d8a655..2be85ffa4 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -113,7 +113,7 @@ As features stabilize some brief notes about them will accumulate here. information can be displayed. #3941 #### Updated -* Bundled harfbuzz to 7.3.0 +* Bundled harfbuzz to 8.0.0 * Bundled freetype to 2.13.0 * Bundled Nerd Font Symbols font to v3.0.1. Note that there are several [breaking changes in v3](https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.0.0).