diff options
author | Joe Wilm <joe@jwilm.com> | 2016-06-24 21:52:32 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-06-24 21:58:13 -0700 |
commit | 23dbf721547f652d4afa42e505c7703dfb927a47 (patch) | |
tree | 9945fc35fee64498cc0e0e56ff502cfbd28274d0 /font/src/lib.rs | |
parent | 078dd41e371a9bd905b7d99fa757baafad6a4733 (diff) | |
download | alacritty-23dbf721547f652d4afa42e505c7703dfb927a47.tar.gz alacritty-23dbf721547f652d4afa42e505c7703dfb927a47.zip |
Fix subpixel rendering for macOS
This adds a bunch of APIs to CGContext (and supporting types) that
aren't actually necessary to turn on subpixel rendering. The key for
subpixel rendering were the options passed to bitmap_context_create().
Specifically, kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host
are necessary to enable it.
Diffstat (limited to 'font/src/lib.rs')
-rw-r--r-- | font/src/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/font/src/lib.rs b/font/src/lib.rs index ba632bee..bd485ff0 100644 --- a/font/src/lib.rs +++ b/font/src/lib.rs @@ -10,8 +10,6 @@ extern crate fontconfig; #[cfg(not(target_os = "macos"))] extern crate freetype; -#[cfg(not(target_os = "macos"))] -extern crate libc; #[cfg(target_os = "macos")] extern crate core_text; @@ -23,6 +21,7 @@ extern crate core_foundation_sys; extern crate core_graphics; extern crate euclid; +extern crate libc; use std::fmt; |