Skip to content

Commit

Permalink
Update missing font workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliusSutkus89 authored and andiwand committed Sep 18, 2024
1 parent 1a70199 commit 1f627f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pdf2htmlEX/src/HTMLRenderer/font.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,10 @@ static string general_font_family(GfxFont * font)
// TODO: this function is called when some font is unable to process, may use the name there as a hint
void HTMLRenderer::export_remote_default_font(long long fn_id)
{
f_css.fs << "." << CSS::FONT_FAMILY_CN << fn_id << "{font-family:sans-serif;visibility:hidden;}" << endl;
// Workaround for https://github.com/opendocument-app/pdf2htmlEX-Android/issues/94
// Workaround for https://github.com/opendocument-app/OpenDocument.droid/issues/348
// f_css.fs << "." << CSS::FONT_FAMILY_CN << fn_id << "{font-family:sans-serif;visibility:hidden;}" << endl;
f_css.fs << "." << CSS::FONT_FAMILY_CN << fn_id << "{font-family:sans-serif;visibility:visible;}" << endl;
}

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

0 comments on commit 1f627f6

Please sign in to comment.