mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
Merge pull request #86 from jahewson/master
bugfix: mime types for data uri fonts
This commit is contained in:
commit
d476f566fd
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user