diff --git a/components/gfx/platform/freetype/font_context.rs b/components/gfx/platform/freetype/font_context.rs index eeaec2a0491..887c321781d 100644 --- a/components/gfx/platform/freetype/font_context.rs +++ b/components/gfx/platform/freetype/font_context.rs @@ -25,7 +25,7 @@ struct User { } // FreeType doesn't require any particular alignment for allocations. -const FT_ALIGNMENT: usize = 0; +const FT_ALIGNMENT: usize = 1; extern fn ft_alloc(mem: FT_Memory, req_size: c_long) -> *mut c_void { unsafe {