aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-11-17 16:59:31 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-11-19 18:25:48 +0000
commit8e7658a135ae05c790094f2b1b681c7f64f05cf0 (patch)
tree14e77ad8d59454937085cc3a60619b3a3ef03aa3 /terminal.h
parentMerge branch 'require-space-to-overflow-double-width-glyph' (diff)
config: add ‘dpi-aware’ option, defaulting to enabled
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
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h1
1 files changed, 1 insertions, 0 deletions
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;