1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00
This commit is contained in:
Lu Wang 2013-02-21 16:40:15 +08:00
parent 285b4c052e
commit 5947b1b953
2 changed files with 10 additions and 1 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
pdf2htmlex (0.7-1~git201302182049r3bc73-0ubuntu1) quantal; urgency=low
* New parameter: process-outline
-- WANG Lu <coolwanglu@gmail.com> Mon, 18 Feb 2013 20:49:57 +0800
pdf2htmlex (0.7-1~git201301292229r2595c-0ubuntu1) quantal; urgency=low
* Fixed a CSS issue

View File

@ -349,6 +349,7 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo
int k = i;
if(code2GID)
{
// for fonts with GID (e.g. TTF) we need to map GIDs instead of codes
if((k = code2GID[i]) == 0) continue;
}
@ -482,7 +483,9 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo
/*
* Step 5
* Generate the font
* Reload to retrieve/fix accurate ascent/descent
*
* Ascent/Descent are not used in PDF, and the values in PDF may be wrong or inconsistent (there are 3 sets of them)
* We need to reload in order to retrieve/fix accurate ascent/descent
*/
string fn = (char*)str_fmt("%s/f%llx%s",
(param->single_html ? param->tmp_dir : param->dest_dir).c_str(),