1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-07 18:30:34 +00:00

bugfix: mime types for data uri fonts

This commit is contained in:
John Hewson 2013-02-06 00:16:44 +00:00
parent 33db881c46
commit a712961ede

View File

@ -732,7 +732,7 @@ void HTMLRenderer::export_remote_font(const FontInfo & info, const string & suff
ifstream fin(path, ifstream::binary); ifstream fin(path, ifstream::binary);
if(!fin) if(!fin)
throw "Cannot locate font file: " + path; throw "Cannot locate font file: " + path;
f_css.fs << "'data:font/" + mime_type + ";base64," << base64stream(fin) << "'"; f_css.fs << "'data:" + mime_type + ";base64," << base64stream(fin) << "'";
} }
else else
{ {