diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2016-09-28 19:58:53 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-10-05 19:37:11 +0100 |
commit | c2901d60fa98874d4a36cf1ab57a03cb80fde038 (patch) | |
tree | 948bd3c69624d1bbc1f2893cc30c54720bce7a50 /include/mupdf/fitz/font.h | |
parent | 9e88b088ea2ddcb6f85584750eb3c989af101905 (diff) | |
download | mupdf-c2901d60fa98874d4a36cf1ab57a03cb80fde038.tar.xz |
Uncouple font shaper data from harfbuzz.
The fz_font structure now doesn't know anything about
harfbuzz at all, it merely offers an abstract
'fz_shaper_data_t' entry.
Diffstat (limited to 'include/mupdf/fitz/font.h')
-rw-r--r-- | include/mupdf/fitz/font.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/include/mupdf/fitz/font.h b/include/mupdf/fitz/font.h index 69959908..0c31dbff 100644 --- a/include/mupdf/fitz/font.h +++ b/include/mupdf/fitz/font.h @@ -47,11 +47,20 @@ fz_font_flags_t *fz_font_flags(fz_font *font); typedef struct { - void *font; /* hb_font for shaping */ - void (*destroy)(void *); /* Destructor for hb_font */ -} fz_hb_t; + void *shaper_handle; + void (*destroy)(fz_context *ctx, void *); /* Destructor for shape_handle */ +} fz_shaper_data_t; -fz_hb_t *fz_font_hb(fz_font *font); +/* + fz_shaper_data_t: Retrieve a pointer to the shaper data + structure for the given font. + + font: The font to query. + + Returns a pointer to the shaper data structure (or NULL if + font is NULL). +*/ +fz_shaper_data_t *fz_font_shaper_data(fz_font *font); const char *fz_font_name(fz_font *font); void *fz_font_ft_face(fz_font *font); |