开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜