[time-nuts] Lady Heather's Window, font size
didier at cox.net
Sun Feb 1 16:47:34 UTC 2009
Windows' error in the response to TextWidth is not a function of fixed
versus proportional spacing, bitmap versus scalable font. I have not found a
hard rule. Simpler fonts tend to be more accurately reported, but that's not
universal. Experiment with my little program on different computers, you
will be surprised of the differences.
This came about because I tried to emulate a TTY screen and make the window
exactly 80 characters wide, while offering the capability to change the size
of the window. I have not been able to do what I wanted and at the end, I
only selected one font which worked consistently over a few sizes, and I
simply offer the user a few selections rather than let the user scale the
> -----Original Message-----
> From: time-nuts-bounces at febo.com
> [mailto:time-nuts-bounces at febo.com] On Behalf Of Brooke Clarke
> Sent: Sunday, February 01, 2009 10:16 AM
> To: Discussion of precise time and frequency measurement
> Subject: Re: [time-nuts] Lady Heather's Window, font size
> Hi Didier:
> I've been working with my PC display adapter and it's related
> software. In WIN XP when I right click the desktop \
> properties \ settings \advanced \ general there is an option
> for DPI with 96 the default, 120 the option I choose for
> larger text in general applications, or a custom setting.
> Also regarding fonts. There are fixed fonts, like courier,
> and True Type variable fonts that scale, like Times New Roman.
> Have Fun,
> Brooke Clarke
> Didier wrote:
> > 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: time-nuts-bounces at febo.com
> >> [mailto:time-nuts-bounces at febo.com] 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 -- time-nuts at febo.com To unsubscribe, go to
> >> https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
> >> and follow the instructions there.
> > _______________________________________________
> > time-nuts mailing list -- time-nuts at febo.com To unsubscribe, go to
> > https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
> > and follow the instructions there.
> time-nuts mailing list -- time-nuts at febo.com To unsubscribe,
> go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
> and follow the instructions there.
More information about the time-nuts