mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-07 18:30:34 +00:00
cosmetic changes
This commit is contained in:
parent
b2d28e2490
commit
b9763d1072
|
@ -21,23 +21,28 @@ namespace pdf2htmlEX {
|
|||
void HTMLRenderer::export_remote_font(const FontInfo & info, const string & suffix, GfxFont * font)
|
||||
{
|
||||
string mime_type, format;
|
||||
if (suffix == ".ttf") {
|
||||
if(suffix == ".ttf")
|
||||
{
|
||||
format = "truetype";
|
||||
mime_type = "application/x-font-ttf";
|
||||
}
|
||||
else if (suffix == ".otf") {
|
||||
else if(suffix == ".otf")
|
||||
{
|
||||
format = "opentype";
|
||||
mime_type = "application/x-font-otf";
|
||||
}
|
||||
else if (suffix == ".woff") {
|
||||
else if(suffix == ".woff")
|
||||
{
|
||||
format = "woff";
|
||||
mime_type = "application/font-woff";
|
||||
}
|
||||
else if (suffix == ".eot") {
|
||||
else if(suffix == ".eot")
|
||||
{
|
||||
format = "embedded-opentype";
|
||||
mime_type = "application/vnd.ms-fontobject";
|
||||
}
|
||||
else if (suffix == ".svg") {
|
||||
else if(suffix == ".svg")
|
||||
{
|
||||
format = "svg";
|
||||
mime_type = "image/svg+xml";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user