summaryrefslogtreecommitdiff
path: root/src/entry_backend/harfbuzz.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-06-25 15:59:42 +0100
committerPhil Jones <philj56@gmail.com>2022-06-25 15:59:42 +0100
commit335573a628ed6ff20640c881935e0648a4819c1a (patch)
treeb8a8056e877b97797c95814830b154e612591ea4 /src/entry_backend/harfbuzz.h
parenta6c20eb3713fc5e4b2c8f4075762b899bf9c1857 (diff)
Add option to disable font hinting.
Also improve text on non-hidpi screens.
Diffstat (limited to 'src/entry_backend/harfbuzz.h')
-rw-r--r--src/entry_backend/harfbuzz.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/entry_backend/harfbuzz.h b/src/entry_backend/harfbuzz.h
index 8404032..68bb443 100644
--- a/src/entry_backend/harfbuzz.h
+++ b/src/entry_backend/harfbuzz.h
@@ -1,6 +1,7 @@
#ifndef ENTRY_BACKEND_HARFBUZZ_H
#define ENTRY_BACKEND_HARFBUZZ_H
+#include <stdbool.h>
#include <cairo/cairo-ft.h>
#include <ft2build.h>
#include FT_FREETYPE_H
@@ -16,6 +17,8 @@ struct entry_backend_harfbuzz {
hb_font_t *hb_font;
hb_buffer_t *hb_buffer;
+
+ bool disable_hinting;
};
void entry_backend_harfbuzz_init(struct entry *entry, uint32_t *width, uint32_t *height);