summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/font.h
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2016-10-02 13:23:30 -0400
committerRobin Watts <robin.watts@artifex.com>2016-10-07 16:56:46 +0100
commitf5263de25f42552fce13944b23238676503d0e9d (patch)
tree134493fbf676873854a37a8e9a7351f13a8c4713 /include/mupdf/fitz/font.h
parent21b695f447ad3fa852e11a4f20b0576ab75b527f (diff)
downloadmupdf-f5263de25f42552fce13944b23238676503d0e9d.tar.xz
Add ctx to fz_font functions.
Diffstat (limited to 'include/mupdf/fitz/font.h')
-rw-r--r--include/mupdf/fitz/font.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/mupdf/fitz/font.h b/include/mupdf/fitz/font.h
index f8529c3b..8f6aa902 100644
--- a/include/mupdf/fitz/font.h
+++ b/include/mupdf/fitz/font.h
@@ -30,7 +30,7 @@ typedef struct fz_font_s fz_font;
if not a freetype handled font. (Cast to void *
to avoid nasty header exposure).
*/
-void *fz_font_ft_face(fz_font *font);
+void *fz_font_ft_face(fz_context *ctx, fz_font *font);
/*
fz_font_t3_procs: Retrieve the Type3 procs
@@ -41,7 +41,7 @@ void *fz_font_ft_face(fz_font *font);
Returns the t3_procs pointer. Will be NULL for a
non type-3 font.
*/
-fz_buffer **fz_font_t3_procs(fz_font *font);
+fz_buffer **fz_font_t3_procs(fz_context *ctx, fz_font *font);
/*
ft_error_string: map an FT error number to a
@@ -113,7 +113,7 @@ typedef struct
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);
+fz_shaper_data_t *fz_font_shaper_data(fz_context *ctx, fz_font *font);
/*
fz_font_name: Retrieve a pointer to the name of the font.
@@ -123,7 +123,7 @@ fz_shaper_data_t *fz_font_shaper_data(fz_font *font);
Returns a pointer to an internal copy of the font name.
Will never be NULL, but may be the empty string.
*/
-const char *fz_font_name(fz_font *font);
+const char *fz_font_name(fz_context *ctx, fz_font *font);
/*
fz_font_bbox: Retrieve a pointer to the font bbox.
@@ -133,7 +133,7 @@ const char *fz_font_name(fz_font *font);
Returns a pointer to the font bbox (or NULL if the
font is NULL).
*/
-fz_rect *fz_font_bbox(fz_font *font);
+fz_rect *fz_font_bbox(fz_context *ctx, fz_font *font);
/*
fz_new_font_context: Initialise the font context.