1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

fix for IE, use new em size

This commit is contained in:
Lu Wang 2012-09-13 15:01:20 +08:00
parent 602e03771c
commit a28d9f8a20
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ void HTMLRenderer::check_state_change(GfxState * state)
if(!(new_font_info->id == cur_font_info->id))
{
new_line_state = max(new_line_state, NLS_SPAN);
new_line_state = max(new_line_state, NLS_DIV);
cur_font_info = new_font_info;
}

View File

@ -359,9 +359,9 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo
{
// read metrics
int em = ff_get_em_size();
int ascent = ff_get_max_ascent();
int descent = ff_get_max_descent();
int em = ascent + descent;
if(em != 0)
{
info.ascent = ((double)ascent) / em;