Article View: comp.os.ms-windows.programmer.misc
Article #1574How to get correct width of TT strings??
From: John Baima
Date: Tue, 13 Oct 1992 13:58
Date: Tue, 13 Oct 1992 13:58
11 lines
975 bytes
975 bytes
The Windows function GetTextExtent does not return the correct length of a display string when using TT fonts. It is often close, but not always. Typically, the length returned by GetTextExtent is too small. Is there any other way to really find out what the display width of a string really is?? It's kind of nice to know once and awhile :-) Thanks for any help. -- John Baima Silver Mountain Software 1029 Tanglewood, Cedar Hill, TX 75104 john@ling.uta.edu Voice/Fax (214) 293-2920
Technical Details
Message-ID:
<JOHN.92Oct13075822@utafll.utafll.uta.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!news.uta.edu!utafll.uta.edu!johnShow Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!news.uta.edu!utafll.uta.edu!john From: john@utafll.uta.edu (John Baima) Subject: How to get correct width of TT strings?? Message-ID: <JOHN.92Oct13075822@utafll.utafll.uta.edu> Sender: news@utagraph.uta.edu (USENET News System) Nntp-Posting-Host: utafll.uta.edu Organization: Silver Mountain Software Distribution: comp Date: Tue, 13 Oct 1992 13:58:22 GMT Lines: 15