DirectWrite font backend for Windows

This commit is contained in:
Vladimir Vukicevic 2016-11-09 13:50:23 -05:00
parent d16f312464
commit db357b0334
9 changed files with 572 additions and 179 deletions

View file

@ -29,8 +29,7 @@ extern crate bitflags;
#[cfg(target_os = "macos")] extern crate core_text;
// Windows-specific library dependencies
#[cfg(target_os = "windows")] extern crate gdi32;
#[cfg(target_os = "windows")] extern crate winapi;
#[cfg(target_os = "windows")] extern crate dwrote;
extern crate euclid;
extern crate fnv;
@ -38,10 +37,11 @@ extern crate fnv;
// Platforms that use Freetype/Fontconfig library dependencies
#[cfg(any(target_os = "linux", target_os = "android"))]
extern crate fontconfig;
extern crate fontsan;
#[cfg(any(target_os = "linux", target_os = "android", target_os = "windows"))]
#[cfg(any(target_os = "linux", target_os = "android"))]
extern crate freetype;
extern crate fontsan;
extern crate gfx_traits;
// Eventually we would like the shaper to be pluggable, as many operating systems have their own