feat: 添加剪贴板支持和IME管理功能,更新相关接口和实现

This commit is contained in:
2025-12-13 15:49:06 +08:00
parent abcbfd7d0c
commit 6d0db27d0b
12 changed files with 628 additions and 75 deletions

View File

@@ -32,7 +32,7 @@ int main(int argc, char* argv[]) {
auto tex_size = app.texture_mgr()->get_texture(texture_id)->size().cast<float>();
// 加载字体
auto font_result = app.font_mgr()->load_font(R"(C:\Windows\Fonts\SIMYOU.TTF)");
auto font_result = app.font_mgr()->load_font(R"(C:\Windows\Fonts\msyh.ttc)");
if (!font_result.has_value())
throw std::runtime_error("加载字体失败");
auto font_id = font_result.value();