Text Extent and ID3DFont
I would like to know how I can get the text extent of a string by using ID3DFont. I only know that CD3Font has a GetTextExtent function. ( SDK Summer Update )
This will probably NOT work:
--
You''re Welcome,
Rick Wong
- Google | Google for GameDev.net | GameDev.net''s DirectX FAQ. (not as cool as the Graphics and Theory FAQ)
SIZE* size;HDC handle = pFont->GetDC();GetBitmapDimensionEx( (HBITMAP)handle, &size );size.cx; // widthsize.cy; // height
--
You''re Welcome,
Rick Wong
- Google | Google for GameDev.net | GameDev.net''s DirectX FAQ. (not as cool as the Graphics and Theory FAQ)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement