From de7081c730426821d0e59d57f35d91b112a80961 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 28 Apr 2020 16:39:34 +0200 Subject: Add code (untested) for applying glyphs to an image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- common.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'common.h') diff --git a/common.h b/common.h index 615e9c2..5015efd 100644 --- a/common.h +++ b/common.h @@ -2,6 +2,7 @@ #include #include +#include #include #include #include @@ -14,6 +15,8 @@ #define MIN(A, B) ((A) < (B) ? (A) : (B)) #define MAX(A, B) ((A) > (B) ? (A) : (B)) +#define LEN(ARR) (sizeof(ARR) / sizeof(*(ARR))) + struct libskrift_font { SFT_Font *font; void *memory_free; @@ -31,3 +34,14 @@ struct libskrift_context { size_t nfonts; LIBSKRIFT_FONT *fonts[]; }; + +struct format_settings { + int float_type; + int8_t apos; + int8_t rpos; + int8_t gpos; + int8_t bpos; + size_t spsize; +}; + +extern const struct format_settings libskrift_format_settings[LIBSKRIFT_RGBA_LONG_DOUBLE + 1]; -- cgit v1.2.3-70-g09d2