How can I change font leading (linespacing) in wxWidgets?
Then I use wxDC::DrawLabel for drawing multiline text I want t开发者_高级运维o control font leading (linespacing). Is it possible?
There is no existing function to do that.
You can create your own. Use DrawText()
to draw the individual lines with the spacing you want, but you draw each line individually. Use GetTextExtent()
to find the height of the lines, and hence how much linespacing you'll need.
精彩评论