Skip to main content
GameDev.net gamedev.net
🔒 Locked

GDI Font Width

Started by Armera Dec 9, 2000 at 1:05 AM 0 replies 500+ views
Original Post
Armera
Armera
Using TextOut in C++ to write a string of characters to a surface, is there any way in finding out how wide (in pixels) that string is/was? -JER
It's not reverse engineering, unless you get caught.
SiCrane
SiCrane
GetTextExtentPoint() and GetTextExtentPoint32() can determine the height and width of a string produced.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.