HALP! Font Size Issue!

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

HALP! Font Size Issue!

Post by Ormand » Fri Mar 28, 2014 4:13 pm

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: 39
Joined: Thu Mar 08, 2012 7:19 pm

Re: HALP! Font Size Issue!

Post by xabre » Sat Mar 29, 2014 11:10 am

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 » Sun Oct 09, 2016 6:36 pm

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

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

Re: HALP! Font Size Issue!

Post by chrio » Mon Oct 10, 2016 6:50 am

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 » Tue Oct 11, 2016 5:38 am

Thank you very much, chrio!

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

Re: HALP! Font Size Issue!

Post by chrio » Tue Oct 11, 2016 9:13 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests