From 649165143dad441df98477feb89f48caeef34914 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 26 Apr 2020 17:53:56 +0200 Subject: Add autohinting and autokerning renders flags and prepare for fallback fonts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- common.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index fdc17f5..615e9c2 100644 --- a/common.h +++ b/common.h @@ -14,15 +14,6 @@ #define MIN(A, B) ((A) < (B) ? (A) : (B)) #define MAX(A, B) ((A) > (B) ? (A) : (B)) -struct libskrift_context { - LIBSKRIFT_FONT *font; - struct libskrift_rendering rendering; - struct SFT schrift_ctx; - char subpixel_horizontally; - char subpixel_vertically; - char subpixel_bgr; -}; - struct libskrift_font { SFT_Font *font; void *memory_free; @@ -30,3 +21,13 @@ struct libskrift_font { size_t memory_size; size_t refcount; }; + +struct libskrift_context { + struct libskrift_rendering rendering; + struct SFT schrift_ctx; + char subpixel_horizontally; + char subpixel_vertically; + char subpixel_bgr; + size_t nfonts; + LIBSKRIFT_FONT *fonts[]; +}; -- cgit v1.2.3-70-g09d2