Re: [time-nuts] Lady Heather's Window, font size

2009-02-01 Thread Didier
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-boun...@febo.com 
 [mailto:time-nuts-boun...@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@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@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] Lady Heather's Window, font size

2009-02-01 Thread Brooke Clarke
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
http://www.prc68.com

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-boun...@febo.com 
 [mailto:time-nuts-boun...@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@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@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@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] Lady Heather's Window, font size

2009-02-01 Thread Didier
Hi Brooke,

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
window continuously.

Didier

 -Original Message-
 From: time-nuts-boun...@febo.com 
 [mailto:time-nuts-boun...@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
 http://www.prc68.com
 
 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-boun...@febo.com
  [mailto:time-nuts-boun...@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@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@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@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@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] Lady Heather's Window, font size

2009-02-01 Thread Magnus Danielson
Didier skrev:
 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.

The trouble is that the windows port of Lady Heathers choose system 
default which is not the system default one sets in the Display 
Configuration. It seems like it picks Terminal 4 point. It needs to at 
least choose size... but preferably also choose font.

 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.

Well, it is useful as such, but it seems like the graphic on my display 
is not obstructed from incorrectly given size, it simply chooses the 
wrong size to begin with

Cheers,
Magnus

___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.