mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
win32: use fontconfig/freetype on windows as well (for now)
This commit is contained in:
parent
6663f28f0d
commit
025ed57c04
5 changed files with 21 additions and 9 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
use app_units::Au;
|
||||
use azure::azure_hl::BackendType;
|
||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
#[cfg(any(target_os = "linux", target_os = "android", target_os = "windows"))]
|
||||
use azure::scaled_font::FontInfo;
|
||||
use azure::scaled_font::ScaledFont;
|
||||
use fnv::FnvHasher;
|
||||
|
@ -30,7 +30,7 @@ use style::computed_values::{font_style, font_variant};
|
|||
use util::cache::HashCache;
|
||||
use util::mem::HeapSizeOf;
|
||||
|
||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
#[cfg(any(target_os = "linux", target_os = "android", target_os = "windows"))]
|
||||
fn create_scaled_font(template: &Arc<FontTemplateData>, pt_size: Au) -> ScaledFont {
|
||||
ScaledFont::new(BackendType::Skia, FontInfo::FontData(&template.bytes),
|
||||
pt_size.to_f32_px())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue