aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-06-14 12:18:45 -0700
committerPatrick Walton <pcwalton@mimiga.net>2012-06-14 12:18:45 -0700
commitc170892d5432efa3ea651a710c2fe827815a0dd9 (patch)
tree5aebffb8d2ab571f83eddbf56bbf09b47c4a0f3e /src
parent13f82a23bf98dca02803daefa2148572229b3d2f (diff)
downloadservo-c170892d5432efa3ea651a710c2fe827815a0dd9.tar.gz
servo-c170892d5432efa3ea651a710c2fe827815a0dd9.zip
Add rust-geom and a bunch of compile fixes
Diffstat (limited to 'src')
m---------src/rust-geom0
-rw-r--r--src/servo/text/shaper.rs5
2 files changed, 3 insertions, 2 deletions
diff --git a/src/rust-geom b/src/rust-geom
new file mode 160000
+Subproject 5141a7ff6c225f8265eecff496988efcbe41004
diff --git a/src/servo/text/shaper.rs b/src/servo/text/shaper.rs
index ae3f8c0629b..90f2dc3ba4a 100644
--- a/src/servo/text/shaper.rs
+++ b/src/servo/text/shaper.rs
@@ -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);