-
Notifications
You must be signed in to change notification settings - Fork 46
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
Font Displays Corrupted on XSX/PS5 #28
Comments
Hello, I was not able to test on other platforms than PC. I do not have any devkit. Sorry. |
Btw, the code handling the font in Cog is very small. Imgui is handling 99% of it. |
This appears to be addressed by replacing the texture loading code in FCogImguiContext::BuildFont. It's also notable that the texture format is not PF_R8G8B8A8, it is 4 bytes per pixel, not 8. `FontAtlasTexture = UTexture2D::CreateTransient(TextureWidth, TextureHeight);
As a separate issue, Cog rendered on console is very small as opposed to PC. I adapted SCogImguiWidget::OnPaint's calculation of Transform to match what imGui's Unreal integration does. The original code only accounts for transform and not scale.
|
Thanks a lot for the research! Don't hesitate to make a pull request! Sorry I didn't reply sooner, was too busy. |
Thanks for these fixes! we just started using cog and were wondering why fonts were messing up. |
We've recently integrated Cog into our Unreal Engine using 5.2.1. We've encountered the font looks corrupted when on the XSX and PS5 platforms; they look correct on Windows. When we increase the DpiScale, it still looks incorrect. Do you expect that this would work on these other platforms too?
The text was updated successfully, but these errors were encountered: