Board index » delphi » Fonts on Screen vs. Printer

Fonts on Screen vs. Printer

I am trying to do a WYSIWYG type of program.  My problem is with the NEW
COURIER font.  If I use this font on then screen at 12 point which
should be 10 CPI, I start having problems.  If I do 20 characters I get
a width of about 200 pixels.  This is 100 Pixels Per Inch not the 96
that it should be.  When printed it is right on the money.  Is there
away around this?  I have seen/used programs that show the screen vs.
printout very well.  How can this be done.

Thanks

Mark

 

Re:Fonts on Screen vs. Printer


Quote
On Wed, 09 Dec 1998 16:23:55 -0500, THEACK <the...@prodigy.net> wrote:
>I am trying to do a WYSIWYG type of program.  My problem is with the NEW
>COURIER font.  If I use this font on then screen at 12 point which
>should be 10 CPI, I start having problems.  If I do 20 characters I get
>a width of about 200 pixels.  This is 100 Pixels Per Inch not the 96
>that it should be.  When printed it is right on the money.  Is there
>away around this?  I have seen/used programs that show the screen vs.
>printout very well.  How can this be done.

Well, think of it like this: At 96 ppi, 10 characters per inch would
mean that each character is 9.6 pixels wide. That obviously can't be
done (without a lot of super-sampling/anti-aliasing). What Windows
does is round off the character width to the nearest whole pixel.

In order to get a screen view that looks _exactly_ like the printed
output, you have little choice but to position each character
individually.

-Steve

Re:Fonts on Screen vs. Printer


Quote
Steve Schafer (TeamB) wrote:

> On Wed, 09 Dec 1998 16:23:55 -0500, THEACK <the...@prodigy.net> wrote:

> >I am trying to do a WYSIWYG type of program.  My problem is with the NEW
> >COURIER font.  If I use this font on then screen at 12 point which
> >should be 10 CPI, I start having problems.  If I do 20 characters I get
> >a width of about 200 pixels.  This is 100 Pixels Per Inch not the 96
> >that it should be.  When printed it is right on the money.  Is there
> >away around this?  I have seen/used programs that show the screen vs.
> >printout very well.  How can this be done.

> Well, think of it like this: At 96 ppi, 10 characters per inch would
> mean that each character is 9.6 pixels wide. That obviously can't be
> done (without a lot of super-sampling/anti-aliasing). What Windows
> does is round off the character width to the nearest whole pixel.

> In order to get a screen view that looks _exactly_ like the printed
> output, you have little choice but to position each character
> individually.

> -Steve

Thanks Steve:

That's what i thought.

Mark

Other Threads