Scintilla new requires UTF-8 font-names (closes #220)
Present version scintilla(x>3.5.3) accepts a font name only in utf-8. See also: - http://sourceforge.net/p/scintilla/bugs/1684/ - http://www.scintilla.org/ScintillaHistory.html
This commit is contained in:
parent
eb02c73e89
commit
031f4b0657
@ -441,7 +441,7 @@ void ScintillaEditView::setSpecialStyle(const Style & styleToSet)
|
|||||||
if (styleToSet._fontName && lstrcmp(styleToSet._fontName, TEXT("")) != 0)
|
if (styleToSet._fontName && lstrcmp(styleToSet._fontName, TEXT("")) != 0)
|
||||||
{
|
{
|
||||||
WcharMbcsConvertor *wmc = WcharMbcsConvertor::getInstance();
|
WcharMbcsConvertor *wmc = WcharMbcsConvertor::getInstance();
|
||||||
const char * fontNameA = wmc->wchar2char(styleToSet._fontName, CP_ACP);
|
const char * fontNameA = wmc->wchar2char(styleToSet._fontName, CP_UTF8);
|
||||||
execute(SCI_STYLESETFONT, (WPARAM)styleID, (LPARAM)fontNameA);
|
execute(SCI_STYLESETFONT, (WPARAM)styleID, (LPARAM)fontNameA);
|
||||||
}
|
}
|
||||||
int fontStyle = styleToSet._fontStyle;
|
int fontStyle = styleToSet._fontStyle;
|
||||||
|
Loading…
Reference in New Issue
Block a user