Ultralight icon indicating copy to clipboard operation
Ultralight copied to clipboard

How to enable HiDPI support

Open SapuSeven opened this issue 2 years ago • 1 comments

Hi there, I am trying to get a simple app running using Ultralight, but I can't get high DPI scaling to work. I'm using Wayland on Linux with a 4K monitor (3840 x 2160) and everything is tiny - I tried the example app and all the sample apps in this repository. Is this something that can be fixed by setting some environment variable or do I have to update the code? Thanks for any advice

SapuSeven avatar Apr 21 '22 20:04 SapuSeven

Latest AppCore sdk version exposes Monitor with Scale property. By multiplying it by 96 you can get preferred DPI for that monitor.

SupinePandora43 avatar Aug 10 '22 15:08 SupinePandora43