Shop OBEX P1 Docs P2 Docs Learn Events
80 column, 24 row text driver for 640x480 vga? — Parallax Forums

80 column, 24 row text driver for 640x480 vga?

RaymanRayman Posts: 14,233
edited 2008-05-12 18:36 in Propeller 1
Is there a driver for this?
Seems like it should be possible...

·

Comments

  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2008-05-11 23:05
    The VGA High-Res Text Driver has a 80x40 VGA mode. If you really only want 24 lines then you could either limit the text area or increase the line spacing. Other than that you would have to define a font different from the 8x12 that would allow you to stretch across the lines better.

    *Peter*
  • Ziggy252Ziggy252 Posts: 32
    edited 2008-05-12 02:59
    I have been thinking such a thing for some time, but haven't had a chance to unravel VGA_HIRES_TEXT. It would require an 8x16 font (for 640x480), and the two cogs would each be loaded with half the lines of the font. It may even be possible to get it down to one cog by using an 8x8 font and line doubling. I have bitmaps of a high-readability font in 8x8 and 8x16 squirreled away somewhere which may be useful.
  • RaymanRayman Posts: 14,233
    edited 2008-05-12 11:03
    I think the 1 cog and double buffering sounds better... I think it'd be useful if you could do it. I just want it for my Ladder game [noparse]:)[/noparse]
  • BeanBean Posts: 8,129
    edited 2008-05-12 15:18
    There was a thread about how to scale down the bitmap fonts by using only certain rows and columns.
    The results looks pretty good if I remember correctly.
    Maybe you can find that post, it would allow you to display a 8x16 font created from the built-in font table.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Did you know that 111,111,111 multiplied by 111,111,111 equals 12345678987654321 ?

    www.iElectronicDesigns.com

    ·
  • AleAle Posts: 2,363
    edited 2008-05-12 18:36
    The scale down of the parallax font is almost great, some letters have one vertical line like the F and some double like the T, but is very readable. You only need a small trick to recover it using some SHR/ROL combinations you can easily extract the right char something like:

    extract even:
    lbl0
    rdlong temp,ptr_to_font
    mov cnt,#8
    lbl1
    shl temp,#1 wc
    shl temp,#3
    rol dest,#1
    djnz cnt,#lbl1

    to get the odd just add a initial shl after the label lbl1, but you knew that smile.gif
    and skip every other line, too.
Sign In or Register to comment.