Added proper italic default fonts for X11. After Mark Hessling.

This commit is contained in:
William McBrine
2017-12-30 16:24:04 -05:00
parent 81ce231c62
commit 8eaad64c9b
2 changed files with 12 additions and 7 deletions

View File

@@ -54,13 +54,16 @@ Default: 80
### normalFont
The name of a fixed width font. Default: 7x13
The name of a fixed width font. Defaults:
- narrow: -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1
- wide: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1
### italicFont
The name of a fixed width font to be used for characters with A_ITALIC
attributes. Must have the same cell size as normalFont. Default: 7x13
(obviously not an italic font)
attributes. Must have the same cell size as normalFont. Defaults:
- narrow: -misc-fixed-medium-o-normal--13-120-75-75-c-70-iso8859-1
- wide: -misc-fixed-medium-o-normal--20-200-75-75-c-100-iso10646-1
### pointer

View File

@@ -258,9 +258,11 @@ static char *program_name;
/* Macros just for app_resources */
#ifdef PDC_WIDE
# define DEFFONT "-misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1"
# define DEFNFONT "-misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1"
# define DEFIFONT "-misc-fixed-medium-o-normal--20-200-75-75-c-100-iso10646-1"
#else
# define DEFFONT "7x13"
# define DEFNFONT "-misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1"
# define DEFIFONT "-misc-fixed-medium-o-normal--13-120-75-75-c-70-iso8859-1"
#endif
#define APPDATAOFF(n) XtOffsetOf(XCursesAppData, n)
@@ -324,8 +326,8 @@ static XtResource app_resources[] =
RCOLOR(BoldCyan, cyan1),
RCOLOR(BoldWhite, White),
RFONT(normalFont, NormalFont, DEFFONT),
RFONT(italicFont, ItalicFont, DEFFONT),
RFONT(normalFont, NormalFont, DEFNFONT),
RFONT(italicFont, ItalicFont, DEFIFONT),
RSTRING(bitmap, Bitmap),
#ifdef HAVE_XPM_H