summaryrefslogtreecommitdiff
path: root/src/entry_backend/harfbuzz.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-12-26 17:12:31 +0000
committerPhil Jones <philj56@gmail.com>2023-02-28 23:47:21 +0000
commit5dc06ce1f99e8ea25386bf3823b995be5f1cac53 (patch)
treec09b54cb29168a701cae0eeeff041278b384fc93 /src/entry_backend/harfbuzz.h
parent6fa119926ad7cc6142cd876dc5b8d24fd99ce181 (diff)
Convert to using Cairo scale.
Instead of scaling various theme parameters ourselves, just set the scale in Cairo. This shouldn't result in any visible changes, but lays the ground work for fractional scaling support.
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 17b5945..acaa2eb 100644
--- a/src/entry_backend/harfbuzz.h
+++ b/src/entry_backend/harfbuzz.h
@@ -19,12 +19,15 @@ struct entry_backend_harfbuzz {
cairo_font_face_t *cairo_face;
hb_font_t *hb_font;
+ hb_font_extents_t hb_font_extents;
hb_buffer_t *hb_buffer;
hb_variation_t hb_variations[MAX_FONT_VARIATIONS];
hb_feature_t hb_features[MAX_FONT_FEATURES];
uint8_t num_variations;
uint8_t num_features;
+ double scale;
+
bool disable_hinting;
};