From 5dc06ce1f99e8ea25386bf3823b995be5f1cac53 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Mon, 26 Dec 2022 17:12:31 +0000 Subject: 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. --- src/entry_backend/harfbuzz.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/entry_backend/harfbuzz.h') 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; }; -- cgit v1.2.3