Re: [gaffer] is it possible to increase UI font size (by any means)

770 views
Skip to first unread message

EzequielM

unread,
Mar 9, 2021, 3:40:03 AM3/9/21
to gaffe...@googlegroups.com
try setting the sys env QT_SCALE_FACTOR to 2 or something like that before running gaffer
export QT_SCALE_FACTOR=2

I do the same for Substance Painter
For some apps you also might need to disable automatic scaling
export QT_AUTO_SCREEN_SCALE_FACTOR=0

On Tue, Mar 9, 2021 at 2:32 AM haseeb ahmed <lala...@gmail.com> wrote:
Hi Everyone.

On Ubuntu 20.04 (python 2) version working for me. But UI looks like this. Font size is extremely small. I tried to increase system font size (scale factory) but it doesn't help. Any ideas. my screen is 4K (40 inch) any ideas will help. huge thanks, haseeb.

--
You received this message because you are subscribed to the Google Groups "gaffer-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gaffer-dev/a5eda243-0f00-4dc4-a075-9267ad170d30o%40googlegroups.com.

Szabolcs Dudás

unread,
Mar 9, 2021, 5:14:03 AM3/9/21
to gaffer-dev
Hi!

I found the font size settings in the ~\gaffer\0.59.0.0-beta\python\GafferUI\_StyleSheet.py file. Change `font: 9px` (line:201,214) to something bigger like this:

"""
*[gafferClasses~="GafferUI.Window"] {
color: $foreground;
font: 12px;
etch-disabled-text: 0;
background-color: $backgroundDarker;
border: 1px solid #555555;
}

QWidget {
background-color: transparent;
}

QLabel, QCheckBox, QPushButton, QComboBox, QMenu, QMenuBar,
QTabBar, QLineEdit, QAbstractItemView, QPlainTextEdit, QDateTimeEdit {
color: $foreground;
font: 12px;
etch-disabled-text: 0;
selection-background-color: $brightColor;
outline: none;
}
Reply all
Reply to author
Forward
0 new messages