diff --git a/TODO b/TODO index fb2960d..4c08f1c 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,3 @@ -remove intermediate save for asc/des - bug found in baidu(ubuntu...), bug_chn precise link dest diff --git a/src/HTMLRenderer/text.cc b/src/HTMLRenderer/text.cc index ee6e43c..221d2ab 100644 --- a/src/HTMLRenderer/text.cc +++ b/src/HTMLRenderer/text.cc @@ -385,24 +385,6 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo } } - if(0) - { - /* - * [Win|Typo|HHead][Ascent|Descent] - * Firefox & Chrome interprets the values in different ways - * Trying to unify them - */ - // Generate an intermediate ttf font in order to retrieve the metrics - // TODO: see if we can get the values without save/load - - auto fn = str_fmt("%s/f%llx_.ttf", param->tmp_dir.c_str(), info.id); - add_tmp_file((char*)fn); - - ffw_save((char*)fn); - ffw_close(); - ffw_load_font((char*)fn); - ffw_metric(&info.ascent, &info.descent, &info.em_size); - } { auto fn = str_fmt("%s/f%llx%s", (param->single_html ? param->tmp_dir : param->dest_dir).c_str(),