Page 1 of 1

HALP! Font Size Issue!

Posted: Fri Mar 28, 2014 4:13 pm
by Ormand
I am trying to change the font size of the main window. I know this can be done via Settings->Main display but I would like to hard code it via a script. Can anyone help me out?

Re: HALP! Font Size Issue!

Posted: Sat Mar 29, 2014 11:10 am
by xabre
setFontSize("main", <value>)

Value is your font size.

Re: HALP! Font Size Issue!

Posted: Sun Oct 09, 2016 6:36 pm
by Proxy
How would I change the font on the input command line and it's size?

Re: HALP! Font Size Issue!

Posted: Mon Oct 10, 2016 6:50 am
by chrio
Ormand wrote:I am trying to change the font size of the main window. I know this can be done via Settings->Main display but I would like to hard code it via a script. Can anyone help me out?
From what I could see there is currently no command to set the main window font from a script and it doesn't seem to be controlled with the stylesheet settings.

Proxy wrote:How would I change the font on the input command line and it's size?
As for the commanline, you can change its look with a stylesheet definition for TCommandLine, like this one:
Code: [show] | [select all] lua
setAppStyleSheet([[
    TCommandLine{
    font-family: monospace;
    font-size: 13pt;
    font-weight: normal;
    background: #333333;
    color: #dddddd;}
]])

Re: HALP! Font Size Issue!

Posted: Tue Oct 11, 2016 5:38 am
by Proxy
Thank you very much, chrio!

Re: HALP! Font Size Issue!

Posted: Tue Oct 11, 2016 9:13 pm
by chrio
Proxy wrote:Thank you very much, chrio!
No problem :)