Alternative Fonts / Font Sizes?
Stretch65
Posts: 164
Hi,
In the GUI scripts that I'm working on, I'm getting a little tired of the small size & shape of the standard font that appears in
all of the DAZ scripting widgets. Has anyone succeeded in outputting any other kinds / sizes of fonts? If anyone has, I'd be
interested to see the code fragments. Thanks.
Comments
The only DzWidget I know of that supports font changes is DzTextEdit, which provides properties such as .pointSize, .textColor, .bold, .font, .family, etc.
The only successful way is using Qt Designer, set QDialog styleSheet property and all child controls adopt parent settings.
Save the dialog as a .UI file and load it from a script.
Hah! That works. Thank you!
Do bear in mind that Daz is working on updating the Qt version used, soemthing we have been told is necessary for the application to suppot scaling. Using tricks to get a degree of scaling now may cause issues if application-wide scaling becomes available.