MeasurableFont.stringWidth

The display width of the given string, and if you provide a window, it will use it to make the pixel count on screen more accurate too, but this shouldn't generally be necessary.

Given in pixels.

interface MeasurableFont
int
stringWidth
(
scope const(char)[] s
,)
Suggestion Box / Bug Report