From 8e7658a135ae05c790094f2b1b681c7f64f05cf0 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 17 Nov 2020 17:59:31 +0100 Subject: config: add ‘dpi-aware’ option, defaulting to enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When disabled, foot no longers uses outputs’ DPI to scale the font. Instead, it uses the outputs’ scaling factor. That is, instead of appending “:dpi=123” to the fontconfig string, modify the “:pixelsize” or “:size” attribute. Closes #206 --- terminal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 5c7a9501..752057fd 100644 --- a/terminal.h +++ b/terminal.h @@ -227,6 +227,7 @@ struct terminal { struct fcft_font *fonts[4]; struct config_font *font_sizes[4]; float font_dpi; + int font_scale; enum fcft_subpixel font_subpixel; bool is_sending_paste_data; -- cgit v1.3