diff --git a/TODO b/TODO index 2e51672..c41703e 100644 --- a/TODO +++ b/TODO @@ -1,13 +1,7 @@ -scale - ttfautohint multi font in the same line (IE) -intermediate asc/des - -fix auto hint - bug found in baidu(ubuntu...), bug_chn precise link dest diff --git a/src/HTMLRenderer/text.cc b/src/HTMLRenderer/text.cc index 9b46c3b..d533c51 100644 --- a/src/HTMLRenderer/text.cc +++ b/src/HTMLRenderer/text.cc @@ -413,7 +413,7 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo if(param->external_hint_tool != "") { rename(fn.c_str(), tmp_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) + 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()); }