-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
为游戏内叠加层添加本地化支持 #600
为游戏内叠加层添加本地化支持 #600
Conversation
简/繁中文和日语的 UI 字体需要大量的系统资源,因此只会在真正需要时再加载。只显示 FPS 时不会加载它们。 |
鉴于 GetGlyphRangesChineseSimplifiedCommon 只包含 2500 个中文字符,以及为了支持繁体中文的常用字符,我会写一个字符编码导出工具,格式参考 https://github.com/ocornut/imgui/blob/bcfc1ad8f63997751a7269788511157ed872da2c/imgui_draw.cpp#L2883
更新: 更新 2: |
使用 #592 所讨论的方式实现游戏内叠加层的本地化。这为在缩放时修改效果参数打下了基础。
这个 PR 做了以下修改:
已知问题:打开叠加层会有一瞬间的卡顿,因为加载字体是同步完成的。这将在下一个 PR 中通过缓存构建完成的字体数据解决。