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:
parent
602e03771c
commit
a28d9f8a20
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user