diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-02-28 12:51:08 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-03-16 14:51:41 +0100 |
commit | 5a2b234c8e93a2c3acdb21e79da684dbcfe677c7 (patch) | |
tree | 5794949a0f48ab29183328af276696db915e10c0 /include | |
parent | 596ff2344c5c3127209fe5e24381045129c8a568 (diff) | |
download | mupdf-5a2b234c8e93a2c3acdb21e79da684dbcfe677c7.tar.xz |
Add simple functions to create the built-in fonts by name.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/font.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mupdf/fitz/font.h b/include/mupdf/fitz/font.h index ef4cd74d..d9375315 100644 --- a/include/mupdf/fitz/font.h +++ b/include/mupdf/fitz/font.h @@ -442,6 +442,11 @@ fz_font *fz_new_font_from_buffer(fz_context *ctx, const char *name, fz_buffer *b */ fz_font *fz_new_font_from_file(fz_context *ctx, const char *name, const char *path, int index, int use_glyph_bbox); +/* Create a new font from one of the built-in fonts. */ +fz_font *fz_new_base14_font(fz_context *ctx, const char *name); +fz_font *fz_new_cjk_font(fz_context *ctx, int registry, int serif, int wmode); +fz_font *fz_new_builtin_font(fz_context *ctx, const char *name, int is_bold, int is_italic); + /* Add a reference to an existing fz_font. |