mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-10-05 19:41:40 +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))
|
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;
|
cur_font_info = new_font_info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -359,9 +359,9 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo
|
|||||||
|
|
||||||
{
|
{
|
||||||
// read metrics
|
// read metrics
|
||||||
int em = ff_get_em_size();
|
|
||||||
int ascent = ff_get_max_ascent();
|
int ascent = ff_get_max_ascent();
|
||||||
int descent = ff_get_max_descent();
|
int descent = ff_get_max_descent();
|
||||||
|
int em = ascent + descent;
|
||||||
if(em != 0)
|
if(em != 0)
|
||||||
{
|
{
|
||||||
info.ascent = ((double)ascent) / em;
|
info.ascent = ((double)ascent) / em;
|
||||||
|
Loading…
Reference in New Issue
Block a user