Merge pull request #2562 from nebel/xldata-fontawesome-font-issue
Some checks failed
Tag Build / Tag Build (push) Successful in 5s
Build Dalamud / Build on Windows (push) Has been cancelled
Build Dalamud / Check API Compatibility (push) Has been cancelled
Build Dalamud / Deploy dalamud-distrib staging (push) Has been cancelled

Fix font corruption caused by Font Awesome icon button in Data window
This commit is contained in:
goat 2026-01-02 17:03:31 +01:00 committed by GitHub
commit e32e4a0c8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,7 +114,7 @@ internal class FontAwesomeTestWidget : IDataWindowWidget
Task.FromResult( Task.FromResult(
Service<TextureManager>.Get().CreateTextureFromSeString( Service<TextureManager>.Get().CreateTextureFromSeString(
ReadOnlySeString.FromText(this.icons[i].ToIconString()), ReadOnlySeString.FromText(this.icons[i].ToIconString()),
new() { Font = ImGui.GetFont(), FontSize = ImGui.GetFontSize() }))); new() { Font = ImGui.GetFont(), FontSize = ImGui.GetFontSize(), ScreenOffset = Vector2.Zero })));
} }
ImGui.PopFont(); ImGui.PopFont();