diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-04-24 16:36:46 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-04-27 15:12:03 +0200 |
commit | ce680b96e207c90429eb702c5ee4b9bec177fdfd (patch) | |
tree | 2794e8a3efc8ad08d5ca976db4adc3ef10c512a8 /include/mupdf/fitz/font.h | |
parent | 9a725130b9b16daa332f8502e24eac9cab4cf9b2 (diff) | |
download | mupdf-ce680b96e207c90429eb702c5ee4b9bec177fdfd.tar.xz |
Typedef function pointers consistently.
Diffstat (limited to 'include/mupdf/fitz/font.h')
-rw-r--r-- | include/mupdf/fitz/font.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/mupdf/fitz/font.h b/include/mupdf/fitz/font.h index eae2e4cf..7d655222 100644 --- a/include/mupdf/fitz/font.h +++ b/include/mupdf/fitz/font.h @@ -165,7 +165,7 @@ fz_rect *fz_font_bbox(fz_context *ctx, fz_font *font); Returns a new font handle, or NULL if no font found (or on error). */ -typedef fz_font *(*fz_load_system_font_fn)(fz_context *ctx, const char *name, int bold, int italic, int needs_exact_metrics); +typedef fz_font *(fz_load_system_font_fn)(fz_context *ctx, const char *name, int bold, int italic, int needs_exact_metrics); /* fz_load_system_cjk_font_fn: Type for user supplied cjk font loading hook. @@ -176,7 +176,7 @@ typedef fz_font *(*fz_load_system_font_fn)(fz_context *ctx, const char *name, in Returns a new font handle, or NULL if no font found (or on error). */ -typedef fz_font *(*fz_load_system_cjk_font_fn)(fz_context *ctx, const char *name, int ros, int serif); +typedef fz_font *(fz_load_system_cjk_font_fn)(fz_context *ctx, const char *name, int ros, int serif); /* fz_load_system_fallback_font_fn: Type for user supplied fallback font loading hook. @@ -188,7 +188,7 @@ typedef fz_font *(*fz_load_system_cjk_font_fn)(fz_context *ctx, const char *name Returns a new font handle, or NULL if no font found (or on error). */ -typedef fz_font *(*fz_load_system_fallback_font_fn)(fz_context *ctx, int script, int language, int serif, int bold, int italic); +typedef fz_font *(fz_load_system_fallback_font_fn)(fz_context *ctx, int script, int language, int serif, int bold, int italic); /* fz_install_load_system_font_fn: Install functions to allow @@ -197,9 +197,9 @@ typedef fz_font *(*fz_load_system_fallback_font_fn)(fz_context *ctx, int script, Only one set of hooks can be in use at a time. */ void fz_install_load_system_font_funcs(fz_context *ctx, - fz_load_system_font_fn f, - fz_load_system_cjk_font_fn f_cjk, - fz_load_system_fallback_font_fn f_fallback); + fz_load_system_font_fn *f, + fz_load_system_cjk_font_fn *f_cjk, + fz_load_system_fallback_font_fn *f_fallback); /* fz_load_*_font returns NULL if no font could be loaded (also on error) */ /* |