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
master
sorayuki 2017-02-16 17:02:31 +08:00 committed by jp9000
parent e7b08f1695
commit a5c7cb52f1
1 changed files with 1 additions and 0 deletions

View File

@ -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());