diff options
author | Phil Jones <philj56@gmail.com> | 2022-06-08 23:14:38 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-06-09 16:51:44 +0100 |
commit | 05861ed6737f6b7b139895c4eeb26791edc333b4 (patch) | |
tree | 2f6af9e3038ec900f3968a1f2ee687f7a7238414 /src/image.h | |
parent | 51bbf779ba2c9d5954e2c9470a8eae7c1ddd38a5 (diff) |
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.
Diffstat (limited to 'src/image.h')
-rw-r--r-- | src/image.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |