Howto determine the size of a string give the current font in wxWidgets

前端 未结 1 1777
广开言路
广开言路 2021-01-21 16:44

Is there a way to determine the display length of a given string (in pixels) based on the currently selected font in (C++) wxWidgets?

For example if I print out the stri

相关标签:
1条回答
  • 2021-01-21 17:32

    Maybe http://docs.wxwidgets.org/stable/wx_wxdc.html#wxdcgettextextent ?

    Note: I'm not a wxWidgets user.

    0 讨论(0)
提交回复
热议问题