mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add rust-geom and a bunch of compile fixes
This commit is contained in:
parent
13f82a23bf
commit
c170892d54
4 changed files with 23 additions and 3 deletions
1
src/rust-geom
Submodule
1
src/rust-geom
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 5141a7ff6c225f8265eecff496988efcbe41004b
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue