Been trying to create a webview GUI in Juce. Unfortunately, when I compile to an .exe, the GUI appears very tiny on my 4K monitor, my monitor is using DPI Scaling at 225%.
When viewing the HTML document I made for the GUI in Chrome or Edge, it performs as it should.
I’m having a heck of time finding the proper implementation of how JUCE uses DPI scaling, I did manage to find this but either I did it wrong or it wasn’t what I needed:
Currently testing as a standalone with the idea of migrating to VST, AU, and MacOS app, and Linux
Currently on Windows 11 24H2
Juce v8.08.
I decided to test out and compile the example WebBrowserDemo within Juce to get an idea of a working example. After compiling with Visual Studio 2022, the .exe opened but the Juce webpage loaded with a staggering amount of script errors.
I ended up finding an open source Github page of some lovely people who created a cross-platform webview library written in C++.
It sounds like this is using the legacy webview engine. I recommend trying out the newer “webview2” engine to see whether that helps, both for the demo and for your project. There’s some info on setting things up here:
This is the default, so it should already be set unless it’s been explicitly disabled. Leaving this enabled is definitely recommended; rendering is unlikely to look good on high-dpi displays when this is turned off.
**reuk **
It sounds like this is using the legacy webview engine. I recommend trying out the newer “webview2” engine to see whether that helps, both for the demo and for your project. There’s some info on setting things up here: