diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-03-31 15:32:38 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-04-04 16:52:03 +0200 |
commit | 9dc58cc827521b11d4eb8e2dd14e7e26bef74edb (patch) | |
tree | ad52c29f6cab9c515552101084488a97f2424345 /platform/gl/gl-font.c | |
parent | 86595de62c24b453913fcf4e63202276bc708a57 (diff) | |
download | mupdf-9dc58cc827521b11d4eb8e2dd14e7e26bef74edb.tar.xz |
epub: Add stripped Charis SIL font to use as the default font for EPUB.
Diffstat (limited to 'platform/gl/gl-font.c')
-rw-r--r-- | platform/gl/gl-font.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/platform/gl/gl-font.c b/platform/gl/gl-font.c index 11430208..58ead8ee 100644 --- a/platform/gl/gl-font.c +++ b/platform/gl/gl-font.c @@ -86,8 +86,10 @@ void ui_init_fonts(fz_context *ctx, float pixelsize) clear_font_cache(); - data = fz_lookup_base14_font(ctx, "Times-Roman", &size); - g_font = fz_new_font_from_memory(ctx, "Times-Roman", data, size, 0, 0); + data = fz_lookup_builtin_font(ctx, "Charis SIL", 0, 0, &size); + if (!data) + data = fz_lookup_builtin_font(ctx, "Times", 0, 0, &size); + g_font = fz_new_font_from_memory(ctx, NULL, data, size, 0, 0); g_font_size = pixelsize; } |