Italic and bold support for SDL (1 and 2), in WIDE mode (TTF) only. To

Do: Performance tuning?
This commit is contained in:
William McBrine
2017-12-30 23:52:45 -05:00
parent 1d8df138b7
commit 8dcde27e8e
2 changed files with 6 additions and 0 deletions

View File

@@ -363,6 +363,9 @@ void PDC_transform_line(int lineno, int x, int len, const chtype *srcp)
#ifdef PDC_WIDE
chstr[0] = ch & A_CHARTEXT;
TTF_SetFontStyle(pdc_ttffont, (ch & A_BOLD ? TTF_STYLE_BOLD : 0) |
(ch & A_ITALIC ? TTF_STYLE_ITALIC : 0));
pdc_font = TTF_RenderUNICODE_Solid(pdc_ttffont, chstr,
pdc_color[foregr]);

View File

@@ -364,6 +364,9 @@ void PDC_transform_line(int lineno, int x, int len, const chtype *srcp)
#ifdef PDC_WIDE
chstr[0] = ch & A_CHARTEXT;
TTF_SetFontStyle(pdc_ttffont, (ch & A_BOLD ? TTF_STYLE_BOLD : 0) |
(ch & A_ITALIC ? TTF_STYLE_ITALIC : 0));
pdc_font = TTF_RenderUNICODE_Solid(pdc_ttffont, chstr,
pdc_color[foregr]);