mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
fonts: Fix a couple warnings introduced by recent changes (#33547)
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
6725f716e7
commit
01ed5064de
1 changed files with 1 additions and 7 deletions
|
@ -26,8 +26,7 @@ use webrender_api::FontInstanceFlags;
|
|||
|
||||
use super::library_handle::FreeTypeLibraryHandle;
|
||||
use crate::font::{
|
||||
FontMetrics, FontTableMethods, FontTableTag, FractionalPixel, PlatformFontMethods, GPOS, GSUB,
|
||||
KERN,
|
||||
FontMetrics, FontTableMethods, FontTableTag, FractionalPixel, PlatformFontMethods,
|
||||
};
|
||||
use crate::font_template::FontTemplateDescriptor;
|
||||
use crate::glyph::GlyphId;
|
||||
|
@ -430,7 +429,6 @@ trait FreeTypeFaceHelpers {
|
|||
fn color(self) -> bool;
|
||||
fn set_size(self, pt_size: Au) -> Result<Au, &'static str>;
|
||||
fn glyph_load_flags(self) -> FT_Int32;
|
||||
fn has_table(self, tag: FontTableTag) -> bool;
|
||||
fn os2_table(self) -> Option<OS2Table>;
|
||||
}
|
||||
|
||||
|
@ -505,10 +503,6 @@ impl FreeTypeFaceHelpers for FT_Face {
|
|||
load_flags as FT_Int32
|
||||
}
|
||||
|
||||
fn has_table(self, tag: FontTableTag) -> bool {
|
||||
unsafe { 0 == FT_Load_Sfnt_Table(self, tag as FT_ULong, 0, ptr::null_mut(), &mut 0) }
|
||||
}
|
||||
|
||||
fn os2_table(self) -> Option<OS2Table> {
|
||||
unsafe {
|
||||
let os2 = FT_Get_Sfnt_Table(self, ft_sfnt_os2) as *mut TT_OS2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue