Project: SWT
Bug 35496 Setting font for Table headers does not work
Reported: 2003-03-21 12:46:40 | Status: resolved fixed

Assigning a new font to a Table sets the new font for the rows within the table, but leaves the Table headers as they are. It DOES work under Win32, though. I looked in the SWT source code (for Win32) for table s setFont() method, and found the following ... Maybe something similiar needs to be done for GTK, too ? public void setFont (Font font) { checkWidget (); super.setFont (font); setScrollWidth (); /* * Bug in Windows. Setting the font will cause the * table area to be redrawn but not the column headers. * Fix is to force a redraw on the column headers. */ ... doing the native stuff ... }

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java