Page 1 of 1
VLC - setting font size, where?
Posted: Fri Jan 13, 2023 1:02 am
by dcung
I put in this section as I mostly use Dogs (Stretch/Buster/Bullseye).
When using big screen/TV and wireless keyboard/mouse, I changed system font sizes in my Stretch/Buster/Bulleye so I can read the screen from a distance. Most are working fine, except few apps.
VLC is one of those. I also looked at VLC preferences, didn't find it.
I don't know where/how to change its default font sizes.
I have changed in places I could find, i.e. 'openbox config', 'customise look and feel'. While other apps reflected the font size changes, VLC does not (I mean VLC Windows Title does, but the menu and everywhere does not).
Anyone knows where/how to do it?
Thank you.
- 2023-01-12-192622_602x459_scrot.png (42.81 KiB) Viewed 1820 times
- 2023-01-12-191951_502x339_scrot.png (18.74 KiB) Viewed 1820 times
Re: VLC - setting font size, where?
Posted: Fri Jan 13, 2023 3:46 pm
by fredx181
dcung wrote:I don't know where/how to change its default font sizes.
I have changed in places I could find, i.e. 'openbox config', 'customise look and feel'. While other apps reflected the font size changes, VLC does not (I mean VLC Windows Title does, but the menu and everywhere does not).
Anyone knows where/how to do it?
I would expect that it's possible, searched on the web but couldn't find.
(edit: tried configuring fontsize with "qtconfig-qt4" but doesn't have any effect on vlc interface)
Only way/workaround AFAIK is to up-scale it with e.g. QT_SCALE_FACTOR=...
(then the size of vlc interface as a whole will be changed)
Don't know if you patched vlc to run as root, if so, simply "QT_SCALE_FACTOR=1.3 vlc" should do, but if not...
Newer DebianDogs have it's own mechanism (if logged in as root) by running vlc as user 'puppy', if you use that, then edit '/root/.local/share/applications/vlc.desktop' and make the Exec= line :
Exec=/bin/bash -c 'QT_SCALE_FACTOR=1.3 ddliveapp vlc'
Or to try first, run from terminal QT_SCALE_FACTOR=1.3 ddliveapp vlc
or QT_SCALE_FACTOR=1.3 run-as-user vlc
(which does basically the same, equivalent of 'run-as-spot' on Puppy)
I tested and works, but if you want it larger, then change to e.g. QT_SCALE_FACTOR=1.5
Re: VLC - setting font size, where?
Posted: Fri Jan 13, 2023 7:14 pm
by dancytron
Thanks for this. I use DD the exact same way and this helps.
Dan
Re: VLC - setting font size, where?
Posted: Fri Jan 13, 2023 7:42 pm
by dcung
fredx181 wrote: Fri Jan 13, 2023 3:46 pm
Don't know if you patched vlc to run as root, if so, simply "QT_SCALE_FACTOR=1.3 vlc" should do, but if not...
I patched VLC to run as root.
Thanks Fred, I always learnt something new from you...
Here's a screenshot to show difference with and without up-scaling.
- 2023-01-14-063157_751x288_scrot.png (126.61 KiB) Viewed 1726 times
Re: VLC - setting font size, where?
Posted: Sat Jan 14, 2023 1:04 am
by dancytron
It works on qBittorrent too.
Re: VLC - setting font size, where?
Posted: Sat Jun 03, 2023 3:52 pm
by soniabu
fredx181 wrote: Fri Jan 13, 2023 3:46 pm
dcung wrote:I don't know where/how to change its default font sizes.
I have changed in places I could find, i.e. 'openbox config', 'customise look and feel'. While other apps reflected the font size changes, VLC does not (I mean VLC Windows Title does, but the menu and everywhere does not).
Anyone knows where/how to do it?
I would expect that it's possible, searched on the web but couldn't find.
(edit: tried configuring fontsize with "qtconfig-qt4" but doesn't have any effect on vlc interface)
Only way/workaround AFAIK is to up-scale it with e.g. QT_SCALE_FACTOR=...
(then the size of vlc interface as a whole will be changed)
Don't know if you patched vlc to run as root, if so, simply "QT_SCALE_FACTOR=1.3 vlc" should do, but if not...
Newer DebianDogs have it's own mechanism (if logged in as root) by running vlc as user 'puppy', if you use that, then edit '/root/.local/share/applications/vlc.desktop' and make the Exec= line :
Exec=/bin/bash -c 'QT_SCALE_FACTOR=1.3 ddliveapp vlc'
Or to try first, run from terminal QT_SCALE_FACTOR=1.3 ddliveapp vlc
or QT_SCALE_FACTOR=1.3 run-as-user vlc
(which does basically the same, equivalent of 'run-as-spot' on Puppy)
I tested and works, but if you want it larger, then change to e.g. QT_SCALE_FACTOR=1.5
VLC AppImage starts with command :QT_SCALE_FACTOR=1.3 run-as-user '/mnt/mmcblk0p1/APPIMAGE/VLC.AppImage'
but it has no effect on headers that stay small.
Of course it would have been nice if it worked with AppImage too.
pity, sonia
Re: VLC - setting font size, where?
Posted: Sat Jun 03, 2023 5:07 pm
by fredx181
Hi Sonia, just tried that too with vlc appimage and indeed doesn't work setting the QT_SCALE_FACTOR, I have no idea why
Re: VLC - setting font size, where?
Posted: Sat Jun 03, 2023 7:35 pm
by Grey
fredx181 wrote: Sat Jun 03, 2023 5:07 pm
QT_SCALE_FACTOR
Coincidentally , just today I was setting up fonts in ZXTune (emulator and music player for ZX Spectrum music). The program is made by my countryman from the city of Taganrog. Everything is fine there, but the fonts in the compiled version from Bitbucket are extremely small...
I'm sharing the solution before I forget it myself
In the startup shortcut I added:
env QT_FONT_DPI=128 /home/grey/Appimage/ZXTune/bin/zxtune-qt
My default DPI is 96.
And your option enlarges EVERYTHING, including icons and blurs fonts
Re: VLC - setting font size, where?
Posted: Sat Jun 03, 2023 8:51 pm
by fredx181
Grey wrote:QT_FONT_DPI=128
Oh, yes, that looks better ! only fonts resized.
Re: VLC - setting font size, where?
Posted: Tue Jun 06, 2023 8:49 am
by soniabu
Grey wrote: Sat Jun 03, 2023 7:35 pm
fredx181 wrote: Sat Jun 03, 2023 5:07 pm
QT_SCALE_FACTOR
Coincidentally , just today I was setting up fonts in ZXTune (emulator and music player for ZX Spectrum music). The program is made by my countryman from the city of Taganrog. Everything is fine there, but the fonts in the compiled version from Bitbucket are extremely small...
I'm sharing the solution before I forget it myself
In the startup shortcut I added:
env QT_FONT_DPI=128 /home/grey/Appimage/ZXTune/bin/zxtune-qt
My default DPI is 96.
And your option enlarges EVERYTHING, including icons and blurs fonts
awesome works great thanks, sonia
root@live: env QT_FONT_DPI=128 run-as-user '/mnt/mmcblk0p1/APPIMAGE/VLC.AppImage'
click to enlarge