mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Split Au type into separate crate, with minimal dependencies.
This commit is contained in:
parent
fb6d0946cb
commit
339a3f869b
72 changed files with 376 additions and 235 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
extern crate freetype;
|
||||
|
||||
use app_units::Au;
|
||||
use font::{FontHandleMethods, FontMetrics, FontTableMethods};
|
||||
use font::{FontTableTag, FractionalPixel};
|
||||
use freetype::freetype::{FTErrorMethods, FT_F26Dot6, FT_Face, FT_FaceRec};
|
||||
|
@ -24,7 +25,6 @@ use std::{mem, ptr};
|
|||
use style::computed_values::{font_stretch, font_weight};
|
||||
use text::glyph::GlyphId;
|
||||
use text::util::{fixed_to_float, float_to_fixed};
|
||||
use util::geometry::Au;
|
||||
use util::str::c_str_to_string;
|
||||
|
||||
fn float_to_fixed_ft(f: f64) -> i32 {
|
||||
|
|
|
@ -8,6 +8,7 @@ extern crate core_foundation;
|
|||
extern crate core_graphics;
|
||||
extern crate core_text;
|
||||
|
||||
use app_units::Au;
|
||||
use core_foundation::base::CFIndex;
|
||||
use core_foundation::data::CFData;
|
||||
use core_foundation::string::UniChar;
|
||||
|
@ -25,7 +26,6 @@ use std::ptr;
|
|||
use std::sync::Arc;
|
||||
use style::computed_values::{font_stretch, font_weight};
|
||||
use text::glyph::GlyphId;
|
||||
use util::geometry::Au;
|
||||
|
||||
pub struct FontTable {
|
||||
data: CFData,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue