I have found it difficult to find out from within a Windows program how big or small a particular font is rendered. Windows has a function called TextWidth (and TextHeight) that does not work correctly for all fonts. It seems to be video card driver dependant too, as the same fonts look different (and have different size) on different video cards.
I wrote a small VB program that you can use to find out if windows is lying for a particular font. It's at http://www.ko4bb.com/VB_Projects/TextWidth/TextWidth.exe This programs sets the size of the colored background to what windows says the font takes. You can see some fonts work well, and some don't. I have found that most of the time, Windows returns a size greater than is actually used. That can be useful if you use these functions by letting you choose fonts that work. Didier > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Magnus Danielson > Sent: Sunday, February 01, 2009 8:46 AM > To: Discussion of precise time and frequency measurement > Subject: Re: [time-nuts] Lady Heather's Window > > Magnus Danielson skrev: > > John Miles skrev: > >> Here's my quick-and-dirty Windows port (including the > modified source code): > >> > >> http://www.ke5fx.com/tbolt/setup.exe (600K) > >> > >> Tested on XP, should be fine on Win9x/2K, no telling with Vista. > >> > >> As with Mark's original program, the default is COM1; > you'll need to > >> modify your Windows shortcut to run "heather /x" (without > the quotes) for COMx. > > > > It runs fine functionally, however, the font is minimalistic and I > > can't read anything written. But the graphs seems to work > etc. Also, I > > can't change the display at run-time, which would be nice. > > /vl does not improve the size of fonts, just the overall > windown size. > It is notable that it maps to the wrong font as the right and > lower part of the text-area is left empty, but the everything > seems to work, just below the limit to unreadable. > > I lack the Windows magic wand capability... > > Cheers, > Magnus > > _______________________________________________ > time-nuts mailing list -- [email protected] To unsubscribe, > go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts > and follow the instructions there. _______________________________________________ time-nuts mailing list -- [email protected] To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts and follow the instructions there.
