VLC - setting font size, where?

a very small Live CD shaped to look and act like Puppy Linux.

Moderator: fredx181

Post Reply
dcung
Posts: 373
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 42 times
Been thanked: 51 times

VLC - setting font size, where?

Post 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
2023-01-12-192622_602x459_scrot.png (42.81 KiB) Viewed 947 times
2023-01-12-191951_502x339_scrot.png
2023-01-12-191951_502x339_scrot.png (18.74 KiB) Viewed 947 times
User avatar
fredx181
Posts: 2645
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 292 times
Been thanked: 1039 times
Contact:

Re: VLC - setting font size, where?

Post 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

dancytron
Posts: 656
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 425 times
Been thanked: 191 times

Re: VLC - setting font size, where?

Post by dancytron »

Thanks for this. I use DD the exact same way and this helps.

Dan

dcung
Posts: 373
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 42 times
Been thanked: 51 times

Re: VLC - setting font size, where?

Post 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... :thumbup:

Here's a screenshot to show difference with and without up-scaling.

2023-01-14-063157_751x288_scrot.png
2023-01-14-063157_751x288_scrot.png (126.61 KiB) Viewed 853 times
dancytron
Posts: 656
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 425 times
Been thanked: 191 times

Re: VLC - setting font size, where?

Post by dancytron »

It works on qBittorrent too. :thumbup2:

User avatar
soniabu
Posts: 258
Joined: Fri Jul 24, 2020 6:14 pm
Location: Paris<-->Montreal
Has thanked: 123 times
Been thanked: 30 times

Re: VLC - setting font size, where?

Post 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

User avatar
fredx181
Posts: 2645
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 292 times
Been thanked: 1039 times
Contact:

Re: VLC - setting font size, where?

Post 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 :?: :o

User avatar
Grey
Posts: 2003
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 75 times
Been thanked: 365 times

Re: VLC - setting font size, where?

Post 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 ;)

Fossapup OS, Ryzen 5 3600 CPU, 64 GB RAM, GeForce GTX 1050 Ti 4 GB, Sound Blaster Audigy Rx with amplifier + Yamaha speakers for loud sound, USB Sound Blaster X-Fi Surround 5.1 Pro V3 + headphones for quiet sound.

User avatar
fredx181
Posts: 2645
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 292 times
Been thanked: 1039 times
Contact:

Re: VLC - setting font size, where?

Post by fredx181 »

Grey wrote:

QT_FONT_DPI=128

Oh, yes, that looks better ! only fonts resized.

User avatar
soniabu
Posts: 258
Joined: Fri Jul 24, 2020 6:14 pm
Location: Paris<-->Montreal
Has thanked: 123 times
Been thanked: 30 times

Re: VLC - setting font size, where?

Post 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
Image

Post Reply

Return to “DebianDogs”