Skip to content

Conversation

@YuiNijika
Copy link

@YuiNijika YuiNijika commented Dec 20, 2025

Added custom font support to ImGuiRedux, making multi-language menus easier to handle.

Tested locally with TypeScript. JavaScript hasn't been tested, but it usually works fine. To fix the TypeScript type errors, I modified vs.d.ts to add these methods.

// Enable custom font support
ImGui.SetCustomFontEnabled(true);

if (ImGui.IsCustomFontEnabled()) {
    // Load custom font
    ImGui.LoadCustomFont("assets/AlibabaPuHuiTi-Black.ttf", 16.0);
}

ImGui.Text("=== 中文测试 ===");
ImGui.TextColored("你好,世界!", 0.0, 1.0, 1.0, 1.0);
ImGui.TextColored("自定义字体显示正常", 0.0, 1.0, 1.0, 1.0);
451f9aa7-f8d3-4056-bae1-68cce80812c1

@continue
Copy link

continue bot commented Dec 20, 2025

All Green - Keep your PRs mergeable

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts


Unsubscribe from All Green comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant