浏览代码

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 年之前
父节点
当前提交
a5c7cb52f1
共有 1 个文件被更改,包括 1 次插入0 次删除
  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.lfStrikeOut = strikeout;
 	lf.lfQuality = ANTIALIASED_QUALITY;
+	lf.lfCharSet = DEFAULT_CHARSET;
 
 	if (!face.empty()) {
 		wcscpy(lf.lfFaceName, face.c_str());