Get the "real" string width?

Posted By: Rei_Ayanami

Get the "real" string width? - 02/27/12 15:51

Hello,

I am not sure if it is a bug, or expected behavior, but the str_width variable does not indicate the real width of the string. Using GetTextExtentPoint with the same font/size, the result does not match (and the width/height is again different).

Am I missing something obvious?

Thanks in advance,
Rei
Posted By: jcl

Re: Get the "real" string width? - 02/27/12 16:15

For getting the size of a D3D text, you use DT_CALCRECT, not GetTextExtentPoint.
Posted By: Rei_Ayanami

Re: Get the "real" string width? - 02/29/12 13:13

Thanks laugh
© 2024 lite-C Forums