Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: Maybe the wrong question to ask? Re: [platform-swt-dev] FontMetrics question about width?

Carolyn,

That would appear to do precisely what I need. Many thanks.
Jack

Carolyn MacLeod wrote:


I believe what you are looking for is GC.stringExtent or GC.textExtent.
Set your font into the GC and then ask the GC how big your string will be.
Hope this helps,
Carolyn






Back to the top