diff options
Diffstat (limited to 'components/gfx/text/shaping/harfbuzz.rs')
-rw-r--r-- | components/gfx/text/shaping/harfbuzz.rs | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/components/gfx/text/shaping/harfbuzz.rs b/components/gfx/text/shaping/harfbuzz.rs index 4334530664c..488d126afd7 100644 --- a/components/gfx/text/shaping/harfbuzz.rs +++ b/components/gfx/text/shaping/harfbuzz.rs @@ -7,16 +7,17 @@ extern crate harfbuzz; use euclid::Point2D; use font::{DISABLE_KERNING_SHAPING_FLAG, Font, FontHandleMethods, FontTableMethods, FontTableTag}; use font::{IGNORE_LIGATURES_SHAPING_FLAG, RTL_FLAG, ShapingOptions}; -use harfbuzz::{HB_MEMORY_MODE_READONLY, HB_DIRECTION_LTR, HB_DIRECTION_RTL}; +use harfbuzz::{HB_DIRECTION_LTR, HB_DIRECTION_RTL, HB_MEMORY_MODE_READONLY}; use harfbuzz::{RUST_hb_blob_create, RUST_hb_face_create_for_tables}; use harfbuzz::{RUST_hb_buffer_add_utf8}; +use harfbuzz::{RUST_hb_buffer_create, RUST_hb_font_destroy}; use harfbuzz::{RUST_hb_buffer_destroy}; +use harfbuzz::{RUST_hb_buffer_get_glyph_infos, RUST_hb_shape}; use harfbuzz::{RUST_hb_buffer_get_glyph_positions}; use harfbuzz::{RUST_hb_buffer_get_length}; use harfbuzz::{RUST_hb_buffer_set_direction}; use harfbuzz::{RUST_hb_face_destroy}; use harfbuzz::{RUST_hb_font_create}; -use harfbuzz::{RUST_hb_font_destroy, RUST_hb_buffer_create}; use harfbuzz::{RUST_hb_font_funcs_create}; use harfbuzz::{RUST_hb_font_funcs_set_glyph_func}; use harfbuzz::{RUST_hb_font_funcs_set_glyph_h_advance_func}; @@ -24,23 +25,20 @@ use harfbuzz::{RUST_hb_font_funcs_set_glyph_h_kerning_func}; use harfbuzz::{RUST_hb_font_set_funcs}; use harfbuzz::{RUST_hb_font_set_ppem}; use harfbuzz::{RUST_hb_font_set_scale}; -use harfbuzz::{RUST_hb_shape, RUST_hb_buffer_get_glyph_infos}; use harfbuzz::{hb_blob_t}; use harfbuzz::{hb_bool_t}; +use harfbuzz::{hb_buffer_t, hb_codepoint_t, hb_font_funcs_t}; use harfbuzz::{hb_face_t, hb_font_t}; use harfbuzz::{hb_feature_t}; -use harfbuzz::{hb_font_funcs_t, hb_buffer_t, hb_codepoint_t}; use harfbuzz::{hb_glyph_info_t}; use harfbuzz::{hb_glyph_position_t}; use harfbuzz::{hb_position_t, hb_tag_t}; -use libc::{c_uint, c_int, c_void, c_char}; +use libc::{c_char, c_int, c_uint, c_void}; use platform::font::FontTable; -use std::char; -use std::cmp; -use std::ptr; -use text::glyph::{CharIndex, GlyphStore, GlyphId, GlyphData}; +use std::{char, cmp, ptr}; +use text::glyph::{CharIndex, GlyphData, GlyphId, GlyphStore}; use text::shaping::ShaperMethods; -use text::util::{float_to_fixed, fixed_to_float, is_bidi_control}; +use text::util::{fixed_to_float, float_to_fixed, is_bidi_control}; use util::geometry::Au; use util::range::Range; |