mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-10-05 19:41:40 +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);
|
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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user