1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

check ttfautohint failure

This commit is contained in:
Lu Wang 2012-09-23 23:01:25 +08:00
parent c393c1b206
commit 4c04f4fa3f

View File

@ -413,7 +413,10 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo
if(param->external_hint_tool != "") if(param->external_hint_tool != "")
{ {
rename(fn.c_str(), tmp_fn.c_str()); rename(fn.c_str(), tmp_fn.c_str());
system((char*)str_fmt("%s %s %s", param->external_hint_tool.c_str(), tmp_fn.c_str(), fn.c_str())); if(system((char*)str_fmt("%s %s %s", param->external_hint_tool.c_str(), tmp_fn.c_str(), fn.c_str())) != 0)
{
rename(tmp_fn.c_str(), fn.c_str());
}
} }
/* /*