Affects winboard only.
mfp->italic = (strchr(p, 'i') != NULL);\r
mfp->underline = (strchr(p, 'u') != NULL);\r
mfp->strikeout = (strchr(p, 's') != NULL);\r
+ mfp->charset = DEFAULT_CHARSET;\r
+ q = strchr(p, 'c');\r
+ if (q)\r
+ mfp->charset = (BYTE) atoi(q+1);\r
}\r
\r
/* Color name parser.\r
lf->lfItalic = mfp->italic;\r
lf->lfUnderline = mfp->underline;\r
lf->lfStrikeOut = mfp->strikeout;\r
- lf->lfCharSet = DEFAULT_CHARSET;\r
+ lf->lfCharSet = mfp->charset;\r
lf->lfOutPrecision = OUT_DEFAULT_PRECIS;\r
lf->lfClipPrecision = CLIP_DEFAULT_PRECIS;\r
lf->lfQuality = DEFAULT_QUALITY;\r
for (bs=0; bs<NUM_SIZES; bs++) {\r
MyFontParams *mfp = &font[bs][(int) ad->argLoc]->mfp;\r
fprintf(f, "/size=%s ", sizeInfo[bs].name);\r
- fprintf(f, "/%s=\"%s:%g%s%s%s%s%s\"\n",\r
+ fprintf(f, "/%s=\"%s:%g%s%s%s%s%sc%d\"\n",\r
ad->argName, mfp->faceName, mfp->pointSize,\r
mfp->bold || mfp->italic || mfp->underline || mfp->strikeout ? " " : "",\r
mfp->bold ? "b" : "",\r
mfp->italic ? "i" : "",\r
mfp->underline ? "u" : "",\r
- mfp->strikeout ? "s" : "");\r
+ mfp->strikeout ? "s" : "",\r
+ (int)mfp->charset);\r
}\r
}\r
break;\r
char faceName[LF_FACESIZE];\r
float pointSize;\r
BYTE bold, italic, underline, strikeout;\r
+ BYTE charset;\r
} MyFontParams;\r
\r
typedef struct {\r
font->mfp.italic = font->lf.lfItalic;
font->mfp.underline = font->lf.lfUnderline;
font->mfp.strikeout = font->lf.lfStrikeOut;
+ font->mfp.charset = font->lf.lfCharSet;
strcpy(font->mfp.faceName, font->lf.lfFaceName);
return TRUE;
}
CHARFORMAT cf;
cf.cbSize = sizeof(CHARFORMAT);
cf.dwMask =
- CFM_COLOR|CFM_BOLD|CFM_ITALIC|CFM_UNDERLINE|CFM_STRIKEOUT|CFM_FACE|CFM_SIZE;
+ CFM_COLOR|CFM_CHARSET|CFM_BOLD|CFM_ITALIC|CFM_UNDERLINE|CFM_STRIKEOUT|CFM_FACE|CFM_SIZE;
cf.crTextColor = mca->color;
cf.dwEffects = mca->effects;
strcpy(cf.szFaceName, font[boardSize][CONSOLE_FONT]->mfp.faceName);
appData.colorize =
(Boolean)!IsDlgButtonChecked(hDlg, OPT_DontColorize);
- if (!appData.colorize) {
+ ChangedConsoleFont();\r
+\r
+ if (!appData.colorize) {
CHARFORMAT cf;
COLORREF background = ParseColorName(COLOR_BKGD);
/*
cf.cbSize = sizeof(CHARFORMAT);
cf.dwMask = CFM_COLOR;
cf.crTextColor = ParseColorName(COLOR_NORMAL);
-
+\r
SendDlgItemMessage(hwndConsole, OPT_ConsoleInput,
EM_SETCHARFORMAT, SCF_ALL, (LPARAM)&cf);
SendDlgItemMessage(hwndConsole, OPT_ConsoleText,
dest->mfp.italic = src->mfp.italic;
dest->mfp.underline = src->mfp.underline;
dest->mfp.strikeout = src->mfp.strikeout;
+ dest->mfp.charset = src->mfp.charset;
lstrcpy(dest->mfp.faceName, src->mfp.faceName);
CreateFontInMF(dest);
}