diff options
author | Mattias Andrée <maandree@kth.se> | 2020-04-26 17:53:56 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-04-26 17:53:56 +0200 |
commit | 649165143dad441df98477feb89f48caeef34914 (patch) | |
tree | ff4e17224d5542cde39d6bb277e1c4d28e1b85a5 /common.h | |
parent | Use 32-bit integer for rendering flags (diff) | |
download | libskrift-649165143dad441df98477feb89f48caeef34914.tar.gz libskrift-649165143dad441df98477feb89f48caeef34914.tar.bz2 libskrift-649165143dad441df98477feb89f48caeef34914.tar.xz |
Add autohinting and autokerning renders flags and prepare for fallback fonts
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | common.h | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -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[]; +}; |