[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: How to get default font in Table

Prasad,

I found it a bit frustrating when prototyping https://bugs.eclipse.org/bugs/show_bug.cgi?id=95934 that the basic design doesn't include access to the default font since the typical requirement is to change the existing font of the viewer to bold or italic rather than to specify a font from scratch. So it's necessary to know the font being used by the target and to do that you need to set that up yourself using Control.getFont for the Table and passing that in to your specialized label provider.


prasad wrote:
Hi

How can I get the default font used in the table. I am using ITabelFontProvider in TableLableProvider. I want to make some rows bold.

Thanks
Prasad