diff options
Diffstat (limited to 'alacritty/src/display.rs')
-rw-r--r-- | alacritty/src/display.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/alacritty/src/display.rs b/alacritty/src/display.rs index f081e054..fcb87604 100644 --- a/alacritty/src/display.rs +++ b/alacritty/src/display.rs @@ -32,6 +32,8 @@ use parking_lot::MutexGuard; use wayland_client::{Display as WaylandDisplay, EventQueue}; use font::{self, Rasterize}; +#[cfg(target_os = "macos")] +use font::set_font_smoothing; use alacritty_terminal::config::{Font, StartupMode}; use alacritty_terminal::event::{Event, OnResize}; @@ -225,6 +227,10 @@ impl Display { api.clear(background_color); }); + // Set subpixel anti-aliasing. + #[cfg(target_os = "macos")] + set_font_smoothing(config.font.use_thin_strokes()); + #[cfg(not(any(target_os = "macos", windows)))] let is_x11 = event_loop.is_x11(); |