View Single Post
  #3 (permalink)  
Old 10th September 2003
edv edv is offline
Junior Member
BS.Player Newbie
 
Join Date: Aug 2002
Posts: 8
Rep Power: 0
edv is an unknown quantity at this point
Default

It's not difficult at all to ask Windows (via API calls) what dimensions a particular string will occupy if drawn with a given font (family, name, point size, and other attributes). GetTextExtentPoint32() will do this for any given string.
Reply With Quote
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20