mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-16 13:58:51 +00:00
cosmetic changes
This commit is contained in:
parent
b2d28e2490
commit
b9763d1072
@ -18,26 +18,31 @@
|
|||||||
|
|
||||||
namespace pdf2htmlEX {
|
namespace pdf2htmlEX {
|
||||||
|
|
||||||
void HTMLRenderer::export_remote_font(const FontInfo & info, const string & suffix, GfxFont * font)
|
void HTMLRenderer::export_remote_font(const FontInfo & info, const string & suffix, GfxFont * font)
|
||||||
{
|
{
|
||||||
string mime_type, format;
|
string mime_type, format;
|
||||||
if (suffix == ".ttf") {
|
if(suffix == ".ttf")
|
||||||
|
{
|
||||||
format = "truetype";
|
format = "truetype";
|
||||||
mime_type = "application/x-font-ttf";
|
mime_type = "application/x-font-ttf";
|
||||||
}
|
}
|
||||||
else if (suffix == ".otf") {
|
else if(suffix == ".otf")
|
||||||
|
{
|
||||||
format = "opentype";
|
format = "opentype";
|
||||||
mime_type = "application/x-font-otf";
|
mime_type = "application/x-font-otf";
|
||||||
}
|
}
|
||||||
else if (suffix == ".woff") {
|
else if(suffix == ".woff")
|
||||||
|
{
|
||||||
format = "woff";
|
format = "woff";
|
||||||
mime_type = "application/font-woff";
|
mime_type = "application/font-woff";
|
||||||
}
|
}
|
||||||
else if (suffix == ".eot") {
|
else if(suffix == ".eot")
|
||||||
|
{
|
||||||
format = "embedded-opentype";
|
format = "embedded-opentype";
|
||||||
mime_type = "application/vnd.ms-fontobject";
|
mime_type = "application/vnd.ms-fontobject";
|
||||||
}
|
}
|
||||||
else if (suffix == ".svg") {
|
else if(suffix == ".svg")
|
||||||
|
{
|
||||||
format = "svg";
|
format = "svg";
|
||||||
mime_type = "image/svg+xml";
|
mime_type = "image/svg+xml";
|
||||||
}
|
}
|
||||||
@ -73,7 +78,7 @@ namespace pdf2htmlEX {
|
|||||||
<< "visibility:visible;"
|
<< "visibility:visible;"
|
||||||
<< "}" // end of .f
|
<< "}" // end of .f
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
static string general_font_family(GfxFont * font)
|
static string general_font_family(GfxFont * font)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user