Re: How to handle high DPI with FOX
Sander Jansen <[email protected]> Mon, 9 Dec 2024 14:25:57 -0600
| Newsgroups | gmane.comp.lib.fox-toolkit.user |
|---|---|
| Message-ID | <CACj81kHy6UPQjtwTjxx8LCPjfjiZqHq0hFA_2aR9VS9sbh2sZA@mail.gmail.com> |
There's nothing in the core library for high DPI. However you should be able to come up with something that can make it more bearable for your users. First some sort of check (or user setting) whether high dpi is enabled and determine some scale factor (1x, 2x, 3x, everything is pixel based so no fractions) and then apply the scale factor to the spacing and padding parameters for the widgets and layout managers (and subclass where needed). This would not solve the issues of widget drawing (single lines needing to be doubled etc), but you could subclass and come up with your own drawing code of course. On Mon, Dec 9, 2024 at 2:02 PM Roland Plüss via Foxgui-users < [email protected]> wrote: > On my lapto I have now a high resolution of 3840x2160. To see text good > enough I've set the DPI scaling of Windows to 250%. FOX does render with > the proper font size but all icons, graphics and sizes are still 250% > too small causing layouts to break and the entire UI to become unusable. > > Does FOX have high DPI support and if yes how can it be used? > > -- > Yours sincerely > Plüss Roland > > Game Development and Game Engine Technologies > https://dragondreams.ch > > > _______________________________________________ > Foxgui-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/foxgui-users > _______________________________________________ Foxgui-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/foxgui-users