Add rust-geom and a bunch of compile fixes

This commit is contained in:
Patrick Walton 2012-06-14 12:18:45 -07:00
parent 13f82a23bf
commit c170892d54
4 changed files with 23 additions and 3 deletions

1
src/rust-geom Submodule

@ -0,0 +1 @@
Subproject commit 5141a7ff6c225f8265eecff496988efcbe41004b

View file

@ -13,7 +13,8 @@ import unsafe::reinterpret_cast;
import harfbuzz::{HB_MEMORY_MODE_READONLY,
HB_DIRECTION_LTR};
import harfbuzz::{hb_blob_t, hb_face_t, hb_font_t, hb_buffer_t,
hb_codepoint_t, hb_bool_t, hb_glyph_position_t};
hb_codepoint_t, hb_bool_t, hb_glyph_position_t,
hb_var_int_t};
import harfbuzz::bindgen::{hb_blob_create, hb_blob_destroy,
hb_face_create, hb_face_destroy,
hb_font_create, hb_font_destroy,
@ -44,7 +45,7 @@ fn shape_text(_font: &font, text: str) -> [glyph] {
y_advance: 0 as int32_t,
x_offset: cur_x as int32_t,
y_offset: 0 as int32_t,
var: 0i32
var: 0 as hb_var_int_t
};
let pos = hb_glyph_pos_to_servo_glyph_pos(hb_pos);