Pārlūkot izejas kodu

obs-text: Fix issue drawing some chinese characters

Some Chinese fonts (for example "STHupo") won't render any characters in
the GDI+ text source.

Closes jp9000/obs-studio#800
sorayuki 8 gadi atpakaļ
vecāks
revīzija
a5c7cb52f1
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      plugins/obs-text/gdiplus/obs-text.cpp

+ 1 - 0
plugins/obs-text/gdiplus/obs-text.cpp

@@ -288,6 +288,7 @@ void TextSource::UpdateFont()
 	lf.lfUnderline = underline;
 	lf.lfUnderline = underline;
 	lf.lfStrikeOut = strikeout;
 	lf.lfStrikeOut = strikeout;
 	lf.lfQuality = ANTIALIASED_QUALITY;
 	lf.lfQuality = ANTIALIASED_QUALITY;
+	lf.lfCharSet = DEFAULT_CHARSET;
 
 
 	if (!face.empty()) {
 	if (!face.empty()) {
 		wcscpy(lf.lfFaceName, face.c_str());
 		wcscpy(lf.lfFaceName, face.c_str());