[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Get advance width of a String in a Font.

David wrote:
Hello,
I would like to get the advance width of a specified String in a specified Font. Someone would known a toolkit or something else which provide this width.

Create a GC object, call setFont(), then call stringExtent(String).

HTH,
Eric