You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing a framework based on DirectX which includes common UI controls such as buttons, labels, textboxes, etc. As you can imagine, the TextBox control required precise measurement of rendered fonts, which was only possible once I added a FindGlyph() wrapper to the SpriteFont class so that I could get offset information for characters. I could have possibly not required this if MeasureString() worked differently.
While ultimately I was able to complete the development of this control, my framework is now dependent on a custom, modified version of DirectXTK-- not a desirable thing, obviously.
If this change request is not feasible and there is a way to achieve precise font measurements through other means I would appreciate any assistance you could provide!
Thanks!
The text was updated successfully, but these errors were encountered:
I'm writing a framework based on DirectX which includes common UI controls such as buttons, labels, textboxes, etc. As you can imagine, the TextBox control required precise measurement of rendered fonts, which was only possible once I added a FindGlyph() wrapper to the SpriteFont class so that I could get offset information for characters. I could have possibly not required this if MeasureString() worked differently.
While ultimately I was able to complete the development of this control, my framework is now dependent on a custom, modified version of DirectXTK-- not a desirable thing, obviously.
If this change request is not feasible and there is a way to achieve precise font measurements through other means I would appreciate any assistance you could provide!
Thanks!
The text was updated successfully, but these errors were encountered: