Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set default font for SWT Shell

Is there a way to set a default font for the whole Shell such that any new control will use that same font?

It seems that right now I have to set the font for every control I create, which leads to too much redundancy.

like image 411
Caleb Avatar asked Aug 28 '11 11:08

Caleb


1 Answers

Font which is used by default is chosen by platform (see other info in Class Font - SWT: The Standard Widget Toolkit), so it's not possible to set default font for all widgets, if you want that, you have to do it "by hand"..

Why are you changing default font anyway..?

like image 50
Sorceror Avatar answered Nov 06 '22 20:11

Sorceror