Page 1 of 1

change font size

Posted: Tue Apr 28, 2015 12:27 pm
by lemon
Hi everybody,

I use QLC+ on my Windows computer for editing purposes, and I'd like to use Massimo's QLC+ RPi image for the shows, but the font size is too big there, I cannot even read every button description.
How can I use a smaller font size on the RPi?

Thanks for your help!

Andreas

Re: change font size

Posted: Tue Apr 28, 2015 12:49 pm
by mcallegari
Hi Andreas, I'm not sure you can.

Maybe you can try to play with the EGLFS specific parameters like QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT
http://doc.qt.io/qt-5/embedded-linux.html

But I'm not sure of the results...

Re: change font size

Posted: Tue Apr 28, 2015 12:53 pm
by mcallegari
In any case, if we're talking only about the Virtual Console, you can adjust the font size of each widget to look good on the RPi.

I think (but again not sure) the Pi uses a Serif font by default.
Otherwise there should be a way to use the same font you used on your PC but I've never done that before.

I guess Google is your friend in this case.

Re: change font size

Posted: Tue Apr 28, 2015 1:13 pm
by lemon
Hi Massimo,

thanks for the advice. It's "DejaVu Sans", 12pt, and it's not only in the virtual console but everywhere. Could you give me a hint for what I have to look on Google? Maybe "Qt font"?
On Windows I have "MS Shell Dlg 2", 8pt, as default.
Maybe it would be enough changing font size, but how? Do I have to compile from source?

Thank you very much

Andreas

Re: change font size

Posted: Fri May 01, 2015 2:58 pm
by lemon
Hi Massimo,

tried today with a RPi with Debian Wheezy and LXDE desktop installed. QLC+ uses "Sans Serif 9pt" there, just 1pt more than Windows but enough to make the descriptions on the Virtual Console to big. How would QLC+ on Linux choose its font? My idea is to install the same font on both systems so I could evaluate on Windows and make the shows on the RPi.

Thank you very much

Andreas

Re: change font size

Posted: Fri May 01, 2015 3:22 pm
by mcallegari
Andreas, Linux and Windows are different. Don't expect to find the same fonts on both

If you search this topic with Google you will find this: https://wiki.debian.org/Fonts/#Adding_fonts

I just tried and I simply needed to copy new .ttf files into

Code: Select all

/usr/share/fonts/truetype
QLC+ detects them right away (maybe after a restart/reboot)

Re: change font size

Posted: Fri May 01, 2015 3:33 pm
by lemon
Hi Massimo,

you are right, and I know very well the difference between the systems, also I know how to add fonts on both of them, anyway thank you for the links.
But my question was not this one.
What I want to know is if QLC+ uses the same fonts on both systems if they are available, so that I could create my projects on Windows and use them on Linux without having different font types and sizes.
I have a hundred widgets on my virtual console and don't want to have to change the font every time I copy a WIndows project to the RPi.

Thank you very much

Andreas

Re: change font size

Posted: Fri May 01, 2015 3:52 pm
by mcallegari
QLC+ doesn't pick a specific font, but the default font provided by Qt (which I believe is the default font provided by the OS)

Most likely, the default font differs from OS to OS, that's why you see differences between Windows and Linux.
I guess you need to set a custom font in your VC to resolve the differences.

[EDIT] To know more: http://doc.qt.io/qt-4.8/qwidget.html#font-prop

Re: change font size

Posted: Fri Jul 22, 2016 6:43 am
by lemon
Sorry if I reactivate this old topic of mine, but I have another question regarding the font size.
I have installed an new Debian Jessie with QLC+ on SD-Card 1 and the Massimo's last QLC+ image on SD-Card 2. Both of them use the Full-HD resolution of my screen, but on Massimo's QLC+ image the font sizes of the program, p.e. the section descriptions on the bottom or the universe configurations are much bigger than on my Debian Jessie image. Any idea how to change that?

Thank you very much

Andreas