From 05861ed6737f6b7b139895c4eeb26791edc333b4 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Wed, 8 Jun 2022 23:14:38 +0100 Subject: Add Harfbuzz backend. Another source of slow startup is initialising Pango. If the user supplies a ttf file, we can skip any Pango stuff and use Harfbuzz directly with Cairo to do our font rendering, providing a large speedup. --- src/image.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/image.h') diff --git a/src/image.h b/src/image.h index 2afaa4d..a366e59 100644 --- a/src/image.h +++ b/src/image.h @@ -8,6 +8,7 @@ struct image { uint8_t *buffer; uint32_t width; uint32_t height; + uint32_t scale; bool redraw; struct { uint32_t x; -- cgit v1.2.3