1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-05 01:28:39 +00:00

Merge pull request #86 from jahewson/master

bugfix: mime types for data uri fonts
This commit is contained in:
Lu Wang 2013-02-05 17:58:31 -08:00
commit d476f566fd

View File

@ -732,7 +732,7 @@ void HTMLRenderer::export_remote_font(const FontInfo & info, const string & suff
ifstream fin(path, ifstream::binary);
if(!fin)
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
{