Josh Posted May 14, 2021 Share Posted May 14, 2021 Please give this a try and tell me the result. AppKit.zip This requires Ubuntu because of the font it looks for. The checkbox icon appears very blurry and "fat" when the checkbox is checked. I am running this on Hyper-V, so maybe that is just a problem with the VM? the circle inside the radio buttons also looks distorted. Windows resizing seems fast enough in my VM but I can't really tell. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Ttiki Posted May 14, 2021 Share Posted May 14, 2021 Looks pretty good to me. I think all the blurriness is caused by the VM. The checkmark and radio button mark are not high res, though. And the toggle button doesn't give much information about its state. The text lowers a bit, but that's all there is. Toggle off toggle on I used Ubuntu 20.04.1 LTS with GNOME version 3.36.8. Quote Just making games for fun. Currently working on T3-L4 Link to comment Share on other sites More sharing options...
Josh Posted May 14, 2021 Author Share Posted May 14, 2021 The checkbox in your image is definitely not rendering correctly. It’s like there is some kind of weird smoothing applied to it. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted May 14, 2021 Author Share Posted May 14, 2021 It appears that the alpha channel of the image is still being ignored. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
reepblue Posted May 14, 2021 Share Posted May 14, 2021 I'll try it on a native install in Mint. It should have the Ubuntu font installed so I expect this to work fine. Actually, since it's talking to X directly, I have a Ubuntu labtop with integrated graphics I can try also. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
aiaf Posted May 14, 2021 Share Posted May 14, 2021 Ubuntu 21.04 Doesnt look to good on my side. Quote I made this with Leadwerks/UAK: Structura | Stacky Desktop Edition Website: Binary Station Link to comment Share on other sites More sharing options...
Josh Posted May 15, 2021 Author Share Posted May 15, 2021 Looks like the display scale is being taken to account when it shouldn't, unless the whole UI is rescaled. Not a problem. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
aiaf Posted May 15, 2021 Share Posted May 15, 2021 I have 4k display with 150% scaling, because text is too small, so yes there is a problem with scaling. Here looking good at 100% scale: Quote I made this with Leadwerks/UAK: Structura | Stacky Desktop Edition Website: Binary Station Link to comment Share on other sites More sharing options...
Josh Posted May 16, 2021 Author Share Posted May 16, 2021 Okay, I can verify a few things: The alpha values are getting successfully sent to the Xrender Picture because I can retrieve them with XGetImage() and read them back and see them. The alpha channel of the image is being ignored in the call to XRenderComposite for reasons unknown. The reason the checkbox appears "fat" is because the SVG rasterizer only colors pixels that have non-zero alpha. If I make all pixels white while retaining the image alpha channel, the image is a solid white square. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted May 16, 2021 Author Share Posted May 16, 2021 Okay cool I've got it: 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
reepblue Posted May 16, 2021 Share Posted May 16, 2021 I understand you wanting to use the Ubuntu font so everything matches in the OS, but I'd also consider the FreeSans/FreeSansBold font as it's part of the GNU font library. I'm using it in my game and the results are pleasant. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Josh Posted May 16, 2021 Author Share Posted May 16, 2021 I have no idea what font or fonts can be expected to exist on Linux machines, and I don’t think there is any consistent way to retrieve that info. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.