Skip to content
This repository has been archived by the owner on Aug 12, 2018. It is now read-only.

Commit

Permalink
Merge pull request #107 from bluenlive/master
Browse files Browse the repository at this point in the history
Send font names in UTF-8
  • Loading branch information
XhmikosR committed Feb 25, 2015
2 parents 2b53c34 + 06e7863 commit 12949f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Styles.c
Original file line number Diff line number Diff line change
Expand Up @@ -4055,7 +4055,7 @@ void Style_SetStyles(HWND hwnd,int iStyle,LPCWSTR lpszStyle)
// Font
if (Style_StrGetFont(lpszStyle,tch,COUNTOF(tch))) {
char mch[256];
WideCharToMultiByte(CP_ACP,0,tch,-1,mch,COUNTOF(mch),NULL,NULL);
WideCharToMultiByte(CP_UTF8,0,tch,-1,mch,COUNTOF(mch),NULL,NULL);
SendMessage(hwnd,SCI_STYLESETFONT,iStyle,(LPARAM)mch);
}

Expand Down

0 comments on commit 12949f7

Please sign in to comment.