aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/gfx/platform/linux/font.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/gfx/platform/linux/font.rs')
-rw-r--r--src/components/gfx/platform/linux/font.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/gfx/platform/linux/font.rs b/src/components/gfx/platform/linux/font.rs
index 6df0b9c13c1..26e684fc0c0 100644
--- a/src/components/gfx/platform/linux/font.rs
+++ b/src/components/gfx/platform/linux/font.rs
@@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-extern mod freetype;
+extern crate freetype;
use font::{FontHandleMethods, FontMetrics, FontTableMethods};
use font::{FontTableTag, FractionalPixel, SpecifiedFontStyle, UsedFontStyle};
@@ -102,7 +102,7 @@ impl FontHandleMethods for FontHandle {
let mut face: FT_Face = ptr::null();
let face_index = 0 as FT_Long;
let result = FT_New_Memory_Face(lib, cbuf, cbuflen as FT_Long,
- face_index, ptr::to_mut_unsafe_ptr(&mut face));
+ face_index, &mut face);
if !result.succeeded() || face.is_null() {
return Err(());
@@ -286,7 +286,7 @@ impl<'a> FontHandle {
let face_index = 0 as FT_Long;
file.to_c_str().with_ref(|file_str| {
FT_New_Face(ft_ctx, file_str,
- face_index, ptr::to_mut_unsafe_ptr(&mut face));
+ face_index, &mut face);
});
if face.is_null() {
return Err(());
@@ -313,7 +313,7 @@ impl<'a> FontHandle {
let face_index = 0 as FT_Long;
file.to_c_str().with_ref(|file_str| {
FT_New_Face(ft_ctx, file_str,
- face_index, ptr::to_mut_unsafe_ptr(&mut face));
+ face_index, &mut face);
});
if face.is_null() {
return Err(());