diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-12-15 10:10:32 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-12-17 09:59:17 +0000 |
| commit | f6ca8c90e11d9b1ecdfe8a5bf69b1b793376a91c (patch) | |
| tree | c8a6e83c143f6d973b9cdc4c3498901089ba263b /config.h | |
| parent | main: Graceful fallback if user has configured an invalid locale (diff) | |
config: add ‘font-size-adjustment=N[px|%]’ option
This patch adds a new config option, font-size-adjustment.
It lets you configure how much the font size should be
incremented/decremented when zooming in or out (ctrl-+, ctrl+-).
Values can be specified in points, pixels or percent.
Closes #1188
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -22,6 +22,11 @@ struct pt_or_px { float pt; }; +struct font_size_adjustment { + struct pt_or_px pt_or_px; + float percent; +}; + enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BEAM }; enum conf_size_type {CONF_SIZE_PX, CONF_SIZE_CELLS}; @@ -139,6 +144,7 @@ struct config { enum {DPI_AWARE_AUTO, DPI_AWARE_YES, DPI_AWARE_NO} dpi_aware; struct config_font_list fonts[4]; + struct font_size_adjustment font_size_adjustment; /* Custom font metrics (-1 = use real font metrics) */ struct pt_or_px line_height; |
