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
|
d = -td
|
||||||
endif
|
endif
|
||||||
if (-hd > d)
|
if (-hd > d)
|
||||||
d = -hd)
|
d = -hd
|
||||||
endif
|
endif
|
||||||
SetOS2Value("WinAscent", a)
|
SetOS2Value("WinAscent", a)
|
||||||
SetOS2Value("WinDescent", d)
|
SetOS2Value("WinDescent", d)
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
|
|
||||||
#include <boost/format.hpp>
|
#include <boost/format.hpp>
|
||||||
|
|
||||||
|
#include "Param.h"
|
||||||
|
|
||||||
#include "HTMLRenderer.h"
|
#include "HTMLRenderer.h"
|
||||||
#include "namespace.h"
|
#include "namespace.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
@ -85,8 +87,6 @@ FontInfo HTMLRenderer::install_font(GfxFont * font)
|
|||||||
return cur_info_iter->second;
|
return cur_info_iter->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO
|
|
||||||
// add a new function and move to text.cc
|
|
||||||
void HTMLRenderer::install_embedded_font(GfxFont * font, FontInfo & info)
|
void HTMLRenderer::install_embedded_font(GfxFont * font, FontInfo & info)
|
||||||
{
|
{
|
||||||
auto path = dump_embedded_font(font, info.id);
|
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;
|
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, "");
|
export_local_font(info, font, fontname, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user