HALP! Font Size Issue!

Post Reply
Ormand
Posts: 1
Joined: Fri Mar 28, 2014 4:06 pm

HALP! Font Size Issue!

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

xabre
Posts: 45
Joined: Thu Mar 08, 2012 7:19 pm

Re: HALP! Font Size Issue!

Post by xabre »

setFontSize("main", <value>)

Value is your font size.

User avatar
Proxy
Posts: 27
Joined: Sun May 08, 2016 4:57 pm

Re: HALP! Font Size Issue!

Post by Proxy »

How would I change the font on the input command line and it's size?

chrio
Posts: 73
Joined: Mon Aug 22, 2016 11:34 am

Re: HALP! Font Size Issue!

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

User avatar
Proxy
Posts: 27
Joined: Sun May 08, 2016 4:57 pm

Re: HALP! Font Size Issue!

Post by Proxy »

Thank you very much, chrio!

chrio
Posts: 73
Joined: Mon Aug 22, 2016 11:34 am

Re: HALP! Font Size Issue!

Post by chrio »

Proxy wrote:Thank you very much, chrio!
No problem :)

Post Reply