GC.getAdvanceWidth

Returns the <em>advance width</em> of the specified character in the font which is currently selected into the receiver. <p> The advance width is defined as the horizontal distance the cursor should move after printing the character in the selected font. </p>

@param ch the character to measure @return the distance in the x direction to move past the character before painting the next

@exception SWTException <ul> <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> </ul>

class GC
int
getAdvanceWidth
(
char ch
)

Meta