Skip to content

Commit

Permalink
deps: harfbuzz -> 8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Jul 9, 2023
1 parent d5861f5 commit 1bfaf85
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 28 deletions.
2 changes: 1 addition & 1 deletion deps/harfbuzz/harfbuzz
Submodule harfbuzz updated 220 files
90 changes: 64 additions & 26 deletions deps/harfbuzz/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
Expand All @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 1bfaf85

Please sign in to comment.