Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Commit

Permalink
fix for IE, use new em size
Browse files Browse the repository at this point in the history
  • Loading branch information
coolwanglu committed Sep 13, 2012
1 parent 602e037 commit a28d9f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/HTMLRenderer/state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/HTMLRenderer/text.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a28d9f8

Please sign in to comment.