diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-11-28 19:44:02 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-11-28 19:44:02 +0000 |
commit | 3a207e707b352b8031409f3851705fbc7eccff36 (patch) | |
tree | 534de121baa1b2a662acecda38bc4a4e536fb2df /fitz/fitz.h | |
parent | bdf5c8848a2de071c8380fab86a1a49215ed5ee7 (diff) | |
download | mupdf-3a207e707b352b8031409f3851705fbc7eccff36.tar.xz |
Move Freetype globals into context.
Freetype globals are not shared between threads currently - to do that
we'll need to introduce a lock.
Diffstat (limited to 'fitz/fitz.h')
-rw-r--r-- | fitz/fitz.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h index ae2c9105..1ae803a4 100644 --- a/fitz/fitz.h +++ b/fitz/fitz.h @@ -138,6 +138,7 @@ char *fz_get_error_line(int n); typedef struct fz_alloc_context_s fz_alloc_context; typedef struct fz_error_context_s fz_error_context; typedef struct fz_warn_context_s fz_warn_context; +typedef struct fz_font_context_s fz_font_context; typedef struct fz_context_s fz_context; struct fz_alloc_context_s @@ -189,6 +190,7 @@ struct fz_context_s fz_alloc_context *alloc; fz_error_context *error; fz_warn_context *warn; + fz_font_context *font; }; fz_context *fz_new_context(fz_alloc_context *alloc); @@ -829,6 +831,9 @@ struct fz_font_s int *width_table; }; +void fz_new_font_context(fz_context *ctx); +void fz_free_font_context(fz_context *ctx); + fz_font *fz_new_type3_font(fz_context *ctx, char *name, fz_matrix matrix); fz_font *fz_new_font_from_memory(fz_context *ctx, unsigned char *data, int len, int index); |