提交 0389ecf9 编写于 作者: J jp9000

UI: Use GDI+ text for multiview on windows

Fixes an issue where text would not have language glyph fallback if
another language would used.  This problem still needs a solution on
linux/mac (and preferably a fix for language glyph fallbacks when using
freetype 2 in general).
上级 65f81105
......@@ -116,7 +116,13 @@ static OBSSource CreateLabel(const char *name, size_t h)
obs_data_set_string(settings, "text", text.c_str());
obs_data_set_bool(settings, "outline", true);
OBSSource txtSource = obs_source_create_private("text_ft2_source", name,
#ifdef _WIN32
const char *text_source_id = "text_gdiplus";
#else
const char *text_source_id = "text_ft2_source";
#endif
OBSSource txtSource = obs_source_create_private(text_source_id, name,
settings);
obs_source_release(txtSource);
......@@ -835,9 +841,6 @@ void OBSProjector::UpdateMultiview()
name += " - ";
name += obs_source_get_name(src);
if (name.size() > 15)
name.resize(15);
multiviewLabels[curIdx + 2] = CreateLabel(name.c_str(), h / 4);
curIdx++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册