mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
bugfix: mime types for data uri fonts
This commit is contained in:
parent
33db881c46
commit
a712961ede
@ -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