Say I create a font like so.
Pretend like everything works and is defined.Code:HFONT font = CreateFont(f_height,f_width,0,0,f_weight,f_italic, f_underline,f_strike,f_charset,OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS,f_quality, FF_DONTCARE|DEFAULT_PITCH,font_name.c_str()); SelectObject(hdc, font);
Now, how do I figure out the unit length of a text string displayed with that font? Ive been looking for hours for a library function that dose that, and all I have found is Graphics.MeasureString from the .NET framework. But I am not using .NET.