fix unify.pe

This commit is contained in:
Lu Wang 2012-08-31 17:06:19 +08:00
parent 9a2047777f
commit 14a137b449
2 changed files with 14 additions and 3 deletions

View File

@ -19,7 +19,7 @@ if (-td > d)
d = -td
endif
if (-hd > d)
d = -hd)
d = -hd
endif
SetOS2Value("WinAscent", a)
SetOS2Value("WinDescent", d)

View File

@ -13,6 +13,8 @@
#include <boost/format.hpp>
#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, "");
}