summaryrefslogtreecommitdiff
path: root/font/src/lib.rs
diff options
context:
space:
mode:
authorTom Crayford <tcrayford@googlemail.com>2017-01-10 13:58:54 +0000
committerJoe Wilm <jwilm@users.noreply.github.com>2017-01-12 21:19:40 -0800
commitf85cc353a68fa67b9ac7985c38412c103221e24d (patch)
treed51d411d1cd95fa5c8d30a15798a8e17b954089a /font/src/lib.rs
parent32cfca772798d13e9c96c5d66250f6ca5ae9baef (diff)
downloadalacritty-f85cc353a68fa67b9ac7985c38412c103221e24d.tar.gz
alacritty-f85cc353a68fa67b9ac7985c38412c103221e24d.zip
make thin stroke rendering configurable
Makes thin stroke rendering for darwin configurable by a new toplevel key under `font:` in the config file. Defaults to false, has no impact on non macos.
Diffstat (limited to 'font/src/lib.rs')
-rw-r--r--font/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/font/src/lib.rs b/font/src/lib.rs
index bc4a2006..cf697c8a 100644
--- a/font/src/lib.rs
+++ b/font/src/lib.rs
@@ -199,7 +199,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) -> Result<Self, Self::Err>
+ fn new(dpi_x: f32, dpi_y: f32, device_pixel_ratio: f32, use_thin_strokes: bool) -> Result<Self, Self::Err>
where Self: Sized;
/// Get `Metrics` for the given `FontKey` and `Size`