mirror of
https://github.com/servo/servo.git
synced 2025-06-22 16:18:59 +01:00
Fix linux build
This commit is contained in:
parent
8785a07022
commit
f76755a671
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ use freetype::bindgen::{
|
||||||
FT_Set_Char_Size
|
FT_Set_Char_Size
|
||||||
};
|
};
|
||||||
|
|
||||||
struct FreeTypeNativeFont/& {
|
struct FreeTypeNativeFont {
|
||||||
face: FT_Face,
|
face: FT_Face,
|
||||||
|
|
||||||
drop {
|
drop {
|
||||||
|
@ -27,12 +27,12 @@ struct FreeTypeNativeFont/& {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn FreeTypeNativeFont(face: FT_Face) -> FreeTypeNativeFont/& {
|
fn FreeTypeNativeFont(face: FT_Face) -> FreeTypeNativeFont {
|
||||||
assert face.is_not_null();
|
assert face.is_not_null();
|
||||||
FreeTypeNativeFont { face: face }
|
FreeTypeNativeFont { face: face }
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FreeTypeNativeFont/& {
|
impl FreeTypeNativeFont {
|
||||||
|
|
||||||
fn glyph_index(codepoint: char) -> Option<GlyphIndex> {
|
fn glyph_index(codepoint: char) -> Option<GlyphIndex> {
|
||||||
assert self.face.is_not_null();
|
assert self.face.is_not_null();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue