aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-11 08:31:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-11 08:31:29 +0000
commit83fd67409b5afb7c64a73d5bb084b0090ceedd56 (patch)
tree1b14d78f4dc9ee2db3a6c3511d85313531c6da6b /config.h
parentMerge branch 'fish-completions' (diff)
parentchangelog: move line-height entry from ‘changed’ to ‘added’ (diff)
Merge branch 'line-height-and-letter-spacing'
Closes #244
Diffstat (limited to 'config.h')
-rw-r--r--config.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/config.h b/config.h
index 21b79230..18b0e0c0 100644
--- a/config.h
+++ b/config.h
@@ -54,6 +54,12 @@ struct config_mouse_binding {
} pipe;
};
+/* If px != 0 then px is valid, otherwise pt is valid */
+union pt_or_px {
+ int16_t px;
+ float pt;
+};
+
struct config {
char *term;
char *shell;
@@ -84,6 +90,14 @@ struct config {
enum {DPI_AWARE_AUTO, DPI_AWARE_YES, DPI_AWARE_NO} dpi_aware;
config_font_list_t fonts[4];
+ /* Custom font metrics (-1 = use real font metrics) */
+ union pt_or_px line_height;
+ union pt_or_px letter_spacing;
+
+ /* Adjusted letter x/y offsets */
+ union pt_or_px horizontal_letter_offset;
+ union pt_or_px vertical_letter_offset;
+
struct {
int lines;