I want to use the HxCFloppyEmulator under Linux. I can start the HxCFloppyEmulator as a FlatPak package directly under Linux, but also as a Windows 64Bit EXE file under Wine. Unfortunately, I can not change the font size with either option, so that the app is practically unusable on modern big 4K screens.
With Wine, you can normally easy scale the screen resolution of a Windows App running on Wine via winecfg (dpi parameter). HxCFloppyEmulator is the first Windows app where this obviously doesn't work. But even under Linux, the Flatpak app HxCFloppyEmulator cannot be persuaded to change the font size via Flatseal (GDK_DPI_SCALE,GDK_SCALE).
What do you have to consider?
HxCFloppyEmulator font size on Linux
Re: HxCFloppyEmulator font size on Linux
Which font/text are you talking about ?frank128 wrote: Fri Jun 09, 2023 12:02 am I want to use the HxCFloppyEmulator under Linux. I can start the HxCFloppyEmulator as a FlatPak package directly under Linux, but also as a Windows 64Bit EXE file under Wine. Unfortunately, I can not change the font size with either option, so that the app is practically unusable on modern big 4K screens.
With Wine, you can normally easy scale the screen resolution of a Windows App running on Wine via winecfg (dpi parameter). HxCFloppyEmulator is the first Windows app where this obviously doesn't work. But even under Linux, the Flatpak app HxCFloppyEmulator cannot be persuaded to change the font size via Flatseal (GDK_DPI_SCALE,GDK_SCALE).
What do you have to consider?
Re: HxCFloppyEmulator font size on Linux
Users with large screens (above 27 inch) usually scale their desktop (independent from text or grafic), otherwise they cannot read the menus and texts due to the tiny size. Some can be enlarged in Linux using the Windows Manager (Monitor Settings) , or even offer options to adjust the text size of the application.
Re: HxCFloppyEmulator font size on Linux
ok but which font/text are you talking about ? The font on the main window or the track viewer ?frank128 wrote: Mon Jun 12, 2023 10:19 pm Users with large screens (above 27 inch) usually scale their desktop (independent from text or grafic), otherwise they cannot read the menus and texts due to the tiny size. Some can be enlarged in Linux using the Windows Manager (Monitor Settings) , or even offer options to adjust the text size of the application.
Re: HxCFloppyEmulator font size on Linux
in the main window and the track viewer !
- Attachments
-
- hxc-2.jpg (234.77 KiB) Viewed 8071 times
Re: HxCFloppyEmulator font size on Linux
If you link the software against FLTK 1.4.x you can zoom all windows with the CTRL + '+' and CTRL + '0' keys.
you can build the software with the FLTK 1.4.x with the "FLTK1_4=1" flag :
make FLTK1_4=1
https://github.com/jfdelnero/HxCFloppyEmulator
Re: HxCFloppyEmulator font size on Linux
Code: Select all
~/git/HxCFloppyEmulator/build # make FLTK1_4=1
make -C ../libhxcadaptor/build/
make[1]: Entering directory '/alpha/git/HxCFloppyEmulator/libhxcadaptor/build'
gcc -o libhxcadaptor.o -c ../sources/libhxcadaptor.c -O3 -I../sources/ -I ../../libhxcfe/sources -I ../../libusbhxcfe/sources -I ../../build -Wall -fPIC -Wl,-Map,foo.map
....
make fltk
make[2]: Entering directory '/alpha/git/HxCFloppyEmulator/HxCFloppyEmulator_software/build'
cd ../sources/thirdpartylibs/fltk/ && bash ./prepare_fltk.sh 1
--2024-09-11 00:28:46-- https://www.fltk.org/pub/fltk/snapshots/fltk-1.4.x-20231229-a09c75e9.tar.gz
Resolving www.fltk.org (www.fltk.org)... 173.230.155.139, 2600:3c01::f03c:91ff:fe9f:634b
Connecting to www.fltk.org (www.fltk.org)|173.230.155.139|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-09-11 00:28:46 ERROR 404: Not Found.
make[2]: *** [Makefile:117: fltk] Error 1
make[2]: Leaving directory '/alpha/git/HxCFloppyEmulator/HxCFloppyEmulator_software/build'
make[1]: *** [Makefile:112: all] Error 2
make[1]: Leaving directory '/alpha/git/HxCFloppyEmulator/HxCFloppyEmulator_software/build'
make: *** [Makefile:18: HxCFloppyEmulator_software] Error 2
https://www.fltk.org/pub/fltk/snapshots ... 5e9.tar.gz
https://www.fltk.org/software.php
https://www.fltk.org/pub/fltk/snapshots ... 553.tar.gz
is the current snapshot of the not released development version 1.4.x.
Re: HxCFloppyEmulator font size on Linux
I got it but with a hack in
HxCFloppyEmulator/HxCFloppyEmulator_software/sources/thirdpartylibs/fltk/prepare_fltk.sh
and a symbolic link (fltk-1.x.x is also hardcoded in another place that I could not found)
lrwxrwxrwx 1 root root 28 Sep 11 08:45 fltk-1.x.x -> fltk-1.4.x-20240906-d8eb4553
The good message is, it fixes the font size issue.
HxCFloppyEmulator/HxCFloppyEmulator_software/sources/thirdpartylibs/fltk/prepare_fltk.sh
Code: Select all
# diff prepare_fltk.sh prepare_fltk.sh.ORG
4,6c4,5
< export DOWNLOADURL=https://www.fltk.org/pub/fltk/snapshots/fltk-1.4.x-20240906-d8eb4553.tar.gz
< export ARCHIVENAMEBASE=fltk-1.4.x-20240906-d8eb4553
<
---
> export DOWNLOADURL=https://www.fltk.org/pub/fltk/snapshots/fltk-1.4.x-20231229-a09c75e9.tar.gz
> export ARCHIVENAMEBASE=fltk-1.4.x-20231229-a09c75e9
15a15,22
> if [[ ! -d fltk-1.x.x ]]; then
> wget $DOWNLOADURL -nc || exit 1
> tar -xzf ${ARCHIVENAMEBASE}.tar.gz
> mv ${FOLDERNAME} fltk-1.x.x
> if [[ -n ${PATCHFILE} ]]; then
> patch -i ../${PATCHFILE} -p1 -d fltk-1.x.x || sleep 20
> fi
> fi
lrwxrwxrwx 1 root root 28 Sep 11 08:45 fltk-1.x.x -> fltk-1.4.x-20240906-d8eb4553
The good message is, it fixes the font size issue.
