Hi!

> ... all the required sizes are multiple of six ...

> A simple way is to reduce the character width is to
> look for 2 consecutive columns with the same bits,
> and delete one (as contain redundant information)
> You need to deleted 2 columns on each glyph to get
> a 6 columns matrix.

That makes sense but...

>> Em 6/5/2011 23:01, Alain Mouette escreveu:
>>> In the printes, fonts should have
>>>
>>> Low Res  9 pin: 72/6 = 12 pixels
>>> Low Res 24 pin: 180/6= 30 pixels
>>> Hi Res   9 pin: 144/6= 24 pixels
>>> Hi Res  24 pin: 360/6= 60 pixels
>>>
>>> This for the whole line (glyph + spacing).

You would not want to use 360 dpi graphics for text
printing on a 24 pin printer, that would be slow. I
think the same is the case for 144 dpi on 9 pin. The
24 pin printer that I mentioned also had a number of
other horizontal 9 pin resolutions, I think including
80, 90 and 120 dpi... The former were AFAIR there for
the very task of printing graphics screenshots better.

In any case, Alain is assuming 6 cpi text spacing. It
is a popular size, I guess, but how about 8 cpi then?



Also interesting: For A4 paper (297 mm high) you get
842 pixels at 72 and 2106 pixels at 180 pixels as the
height of the paper. Of course you need some margins.

Looks like 8-9 pixels are a perfect char height for
usage on 9 pin printers then and that 24 pixels work
fine with 24 pin printers. What a coincidence... ;-)



Scaling is a really interesting question. You want to
have a 30x24 or 12x8 char matrix, as you cannot print
9 pin graphics, only 8 AFAIR...

30x24 can be: 8x8 * 4x3 (for left / right pixels: 3x3)
30x24 can be: 8x14 * 4x2 (...for 2+2 upper/lower: 4x1)
30x24 can be: 8x16 * 4x1,5 (...how to anti-alias this?)

12x8 can be: 8x8 plus margins (or print smaller)
12x8 can be: 8x8 * 1,5x1 (how to anti-alias this?)
more ways are possible :-)



Let me check some of my old code for ESC/P...

ESC * 39 LOWCOLS HIGHCOLS followed by 3 * COLS
bytes of data prints at 180x180 dpi. The 39 is
decimal ASCII values, the header is 5 byte long.

Printing at 360 dpi can cause problems such as:
Print head has to go over the line twice, head
gets stuck with too many pixels, printer has to
remove every second of adjacent pixels, slower.

I cannot find my more verbose notes about the
many other graphics printing modes at the moment.

Regards, Eric



------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to