diff options
author | Joe Wilm <joe@jwilm.com> | 2017-10-08 18:10:29 -0700 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-10-08 22:20:58 -0700 |
commit | 2ea20f4823ae96f92f47a1984a6dd118a9632fdb (patch) | |
tree | 910d61cc1b310fffeb0143a9f15ab34a332dd8e1 /font/src/lib.rs | |
parent | b03ec0df37cc7967733a53383e1bb450e8e05369 (diff) | |
download | alacritty-2ea20f4823ae96f92f47a1984a6dd118a9632fdb.tar.gz alacritty-2ea20f4823ae96f92f47a1984a6dd118a9632fdb.zip |
Scale all fonts based on device-pixel-ratio
Rather than use DPI from config, use device-pixel-ratio from winit. This
is computed using the display DPI anyhow, so it should have the same
effect.
Diffstat (limited to 'font/src/lib.rs')
-rw-r--r-- | font/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/font/src/lib.rs b/font/src/lib.rs index f02df436..181fd88c 100644 --- a/font/src/lib.rs +++ b/font/src/lib.rs @@ -229,7 +229,7 @@ pub trait Rasterize { type Err: ::std::error::Error + Send + Sync + 'static; /// Create a new Rasterize - fn new(dpi_x: f32, dpi_y: f32, device_pixel_ratio: f32, use_thin_strokes: bool) -> Result<Self, Self::Err> + fn new(device_pixel_ratio: f32, use_thin_strokes: bool) -> Result<Self, Self::Err> where Self: Sized; /// Get `Metrics` for the given `FontKey` |