1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-07 18:30:34 +00:00

cosmetic changes

This commit is contained in:
John Hewson 2013-01-29 18:13:48 +00:00
parent b2d28e2490
commit b9763d1072

View File

@ -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";
}