mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
fix unify.pe
This commit is contained in:
parent
9a2047777f
commit
14a137b449
@ -19,7 +19,7 @@ if (-td > d)
|
||||
d = -td
|
||||
endif
|
||||
if (-hd > d)
|
||||
d = -hd)
|
||||
d = -hd
|
||||
endif
|
||||
SetOS2Value("WinAscent", a)
|
||||
SetOS2Value("WinDescent", d)
|
||||
|
@ -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, "");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user