Skip to content

Commit 4753c1e

Browse files
ViliusSutkus89andiwand
authored andcommitted
Update missing font workaround
1 parent b66edbc commit 4753c1e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pdf2htmlEX/src/HTMLRenderer/font.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,10 @@ static string general_font_family(GfxFont * font)
10801080
// TODO: this function is called when some font is unable to process, may use the name there as a hint
10811081
void HTMLRenderer::export_remote_default_font(long long fn_id)
10821082
{
1083-
f_css.fs << "." << CSS::FONT_FAMILY_CN << fn_id << "{font-family:sans-serif;visibility:hidden;}" << endl;
1083+
// Workaround for https://github.com/opendocument-app/pdf2htmlEX-Android/issues/94
1084+
// Workaround for https://github.com/opendocument-app/OpenDocument.droid/issues/348
1085+
// f_css.fs << "." << CSS::FONT_FAMILY_CN << fn_id << "{font-family:sans-serif;visibility:hidden;}" << endl;
1086+
f_css.fs << "." << CSS::FONT_FAMILY_CN << fn_id << "{font-family:sans-serif;visibility:visible;}" << endl;
10841087
}
10851088

10861089
void HTMLRenderer::export_local_font(const FontInfo & info, GfxFont * font, const string & original_font_name, const string & cssfont)

0 commit comments

Comments
 (0)