Hello,
is there any way to get the width and/or height of a string/character, without using any certain device? I'm using DX9 so I could use the ID3DXFont, but the class that handles my text (a sort of text input box) shouldn't have a reference to my font-object. At least I wouldn't want it to have one. Is there any other way? GetCharWidth32 would need a HDC, so thats out of the question too. Some other function without a device, only given the font family, font size and not countin italics/bold/... (so only standard formated text)?






