From 5a2b234c8e93a2c3acdb21e79da684dbcfe677c7 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 28 Feb 2018 12:51:08 +0100 Subject: Add simple functions to create the built-in fonts by name. --- include/mupdf/fitz/font.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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. -- cgit v1.2.3