From 8bd2e91cdcce4b3664cd884d881ce673575aa151 Mon Sep 17 00:00:00 2001 From: Bastien Orivel Date: Tue, 10 Apr 2018 15:23:50 +0200 Subject: Update Webrender Fixes #20609 --- components/gfx/text/shaping/harfbuzz.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'components/gfx/text') diff --git a/components/gfx/text/shaping/harfbuzz.rs b/components/gfx/text/shaping/harfbuzz.rs index c1b25e42d9b..a07003b6ec3 100644 --- a/components/gfx/text/shaping/harfbuzz.rs +++ b/components/gfx/text/shaping/harfbuzz.rs @@ -25,17 +25,17 @@ use harfbuzz::hb_face_destroy; use harfbuzz::hb_feature_t; use harfbuzz::hb_font_create; use harfbuzz::hb_font_funcs_create; -use harfbuzz::hb_font_funcs_set_glyph_func; use harfbuzz::hb_font_funcs_set_glyph_h_advance_func; use harfbuzz::hb_font_funcs_set_glyph_h_kerning_func; +use harfbuzz::hb_font_funcs_set_nominal_glyph_func; use harfbuzz::hb_font_set_funcs; use harfbuzz::hb_font_set_ppem; use harfbuzz::hb_font_set_scale; use harfbuzz::hb_glyph_info_t; use harfbuzz::hb_glyph_position_t; -use libc::{c_char, c_int, c_uint, c_void}; use platform::font::FontTable; use std::{char, cmp, ptr}; +use std::os::raw::{c_char, c_int, c_uint, c_void}; use text::glyph::{ByteIndex, GlyphData, GlyphId, GlyphStore}; use text::shaping::ShaperMethods; use text::util::{fixed_to_float, float_to_fixed, is_bidi_control}; @@ -418,7 +418,7 @@ unsafe impl Sync for FontFuncs {} lazy_static! { static ref HB_FONT_FUNCS: FontFuncs = unsafe { let hb_funcs = hb_font_funcs_create(); - hb_font_funcs_set_glyph_func(hb_funcs, Some(glyph_func), ptr::null_mut(), None); + hb_font_funcs_set_nominal_glyph_func(hb_funcs, Some(glyph_func), ptr::null_mut(), None); hb_font_funcs_set_glyph_h_advance_func( hb_funcs, Some(glyph_h_advance_func), ptr::null_mut(), None); hb_font_funcs_set_glyph_h_kerning_func( @@ -431,7 +431,6 @@ lazy_static! { extern fn glyph_func(_: *mut hb_font_t, font_data: *mut c_void, unicode: hb_codepoint_t, - _: hb_codepoint_t, glyph: *mut hb_codepoint_t, _: *mut c_void) -> hb_bool_t { -- cgit v1.2.3