aboutsummaryrefslogtreecommitdiff
path: root/font/src/lib.rs
diff options
context:
space:
mode:
authorBen Pye <ben@curlybracket.co.uk>2019-04-23 10:41:21 -0700
committerChristian Duerr <chrisduerr@users.noreply.github.com>2019-04-23 17:41:21 +0000
commitb0efa9d105b53211d8df094238c7eb8324e93566 (patch)
treeb8ff924a328f2fdc807d319ad9967a6015509d90 /font/src/lib.rs
parentcf1a35bcb471b293ced201284a888f40a555f274 (diff)
downloadalacritty-b0efa9d105b53211d8df094238c7eb8324e93566.tar.gz
alacritty-b0efa9d105b53211d8df094238c7eb8324e93566.zip
Add DirectWrite font rasterizer
This adds a DirectWrite font rasterizer for Windows and enables subpixel rendering and hinting. It also completely replaces rusttype for font rendering on Windows, allowing Alacritty to use the native font stacks on all operating systems. Fixes #1673. Fixes #2316.
Diffstat (limited to 'font/src/lib.rs')
-rw-r--r--font/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/font/src/lib.rs b/font/src/lib.rs
index 571bf104..d3bddd54 100644
--- a/font/src/lib.rs
+++ b/font/src/lib.rs
@@ -56,9 +56,9 @@ pub mod ft;
pub use ft::{Error, FreeTypeRasterizer as Rasterizer};
#[cfg(windows)]
-pub mod rusttype;
+pub mod directwrite;
#[cfg(windows)]
-pub use crate::rusttype::{Error, RustTypeRasterizer as Rasterizer};
+pub use crate::directwrite::{DirectWriteRasterizer as Rasterizer, Error};
// If target is macos, reexport everything from darwin
#[cfg(target_os = "macos")]