Skip to content

Commit

Permalink
Fixed hideous rendering of consolas bold.
Browse files Browse the repository at this point in the history
  • Loading branch information
robotslave committed Oct 30, 2011
1 parent f0b79a1 commit d563ddf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions windows/window.c
Expand Up @@ -1621,6 +1621,10 @@ static void init_fonts(int pick_width, int pick_height)

f(FONT_NORMAL, cfg.font.charset, fw_dontcare, FALSE);

if (bold_mode == BOLD_FONT) {
f(FONT_BOLD, cfg.font.charset, fw_bold, FALSE);
}

SelectObject(hdc, fonts[FONT_NORMAL]);
GetTextMetrics(hdc, &tm);

Expand Down Expand Up @@ -1712,9 +1716,6 @@ static void init_fonts(int pick_width, int pick_height)
}
}

if (bold_mode == BOLD_FONT) {
f(FONT_BOLD, cfg.font.charset, fw_bold, FALSE);
}
#undef f

descent = tm.tmAscent + 1;
Expand Down

0 comments on commit d563ddf

Please sign in to comment.