From f85cc353a68fa67b9ac7985c38412c103221e24d Mon Sep 17 00:00:00 2001 From: Tom Crayford Date: Tue, 10 Jan 2017 13:58:54 +0000 Subject: 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. --- font/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'font/src/lib.rs') 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 + fn new(dpi_x: f32, dpi_y: f32, device_pixel_ratio: f32, use_thin_strokes: bool) -> Result where Self: Sized; /// Get `Metrics` for the given `FontKey` and `Size` -- cgit