diff --git a/share/unify.pe b/share/unify.pe index 96ac64b..82f05ec 100644 --- a/share/unify.pe +++ b/share/unify.pe @@ -19,7 +19,7 @@ if (-td > d) d = -td endif if (-hd > d) - d = -hd) + d = -hd endif SetOS2Value("WinAscent", a) SetOS2Value("WinDescent", d) diff --git a/src/HTMLRenderer/install.cc b/src/HTMLRenderer/install.cc index 5a6f396..daf41ed 100644 --- a/src/HTMLRenderer/install.cc +++ b/src/HTMLRenderer/install.cc @@ -13,6 +13,8 @@ #include +#include "Param.h" + #include "HTMLRenderer.h" #include "namespace.h" #include "util.h" @@ -85,8 +87,6 @@ FontInfo HTMLRenderer::install_font(GfxFont * font) return cur_info_iter->second; } -// TODO -// add a new function and move to text.cc void HTMLRenderer::install_embedded_font(GfxFont * font, FontInfo & info) { auto path = dump_embedded_font(font, info.id); @@ -158,6 +158,17 @@ void HTMLRenderer::install_external_font(GfxFont * font, FontInfo & info) cerr << "Warning: workaround for font names in bad encodings." << endl; } + //debug + GooString gfn(fontname.c_str()); + GooString * path = globalParams->findFontFile(&gfn); + + cerr << "Find: " << fontname << endl; + if(path) + { + cerr << "MATCHED: " << path->getCString() << endl; + delete path; + } + export_local_font(info, font, fontname, ""); }