开发者

How can I change font leading (linespacing) in wxWidgets?

开发者 https://www.devze.com 2023-01-01 16:51 出处:网络
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.

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

精彩评论

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

关注公众号