Skip to content

Commit

Permalink
Update reference to NotoSansCJK filename (#672)
Browse files Browse the repository at this point in the history
* Update reference to NotoSansCJK filename

* Minor cleanup

We don't ship Droid Sans Fallback anymore
  • Loading branch information
NiLuJe committed May 16, 2018
1 parent f4a56a7 commit 39fbb5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cre.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ static int drawCoverPage(lua_State *L) {
printf("cover size:%d,%d\n", cover->GetWidth(), cover->GetHeight());
else
printf("cover page is null.\n");
LVDrawBookCover(drawBuf, cover, lString8("Droid Sans Fallback"),
LVDrawBookCover(drawBuf, cover, lString8("Droid Sans Mono"),
lString16("test"), lString16("test"), lString16("test"), 0);

return 0;
Expand Down
4 changes: 2 additions & 2 deletions thirdparty/mupdf/external_fonts.patch
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ index f6951ba2..b1fdd981 100644
+char *
+fz_lookup_cjk_font_from_file(fz_context *ctx, int registry, int serif, int wmode)
+{
+ return get_font_file("noto/NotoSansCJK-Regular.ttf");
+ return get_font_file("noto/NotoSansCJKsc-Regular.otf");
+}
+
+const unsigned char *
Expand Down Expand Up @@ -207,7 +207,7 @@ index f6951ba2..b1fdd981 100644
+ char *filename;
+ fz_font *font;
+
+ filename = get_font_file("noto/NotoSansCJK-Regular.ttf");
+ filename = get_font_file("noto/NotoSansCJKsc-Regular.otf");
+ font = fz_new_font_from_file(ctx, NULL, filename, 0, 1);
+ free(filename);
+ return font;
Expand Down

0 comments on commit 39fbb5c

Please sign in to comment.