Font type and size in VGA ( LCD adaptation)
T Chap
Posts: 4,223
case c $00..$FF: 'character? k := color << 1 + c & 1 i := k << 10 + $200 + c & $FE screen[row * cols + col] := i screen[(row + 1) * cols + col] := i | 1 if ++col == cols newline
In Print, this is formatting the screen. In the object NH4_LCDdriver, I do not where and how text is being created, nor in the Print fuction. I am trying to figure out how to change the font type and size as the type and size that is the default is not matching with other bitmaps I have created that contain text and numbers. If it is not possible to change this, I can always just create my own bitmaps of letters and numbers but was hoping to avoid that path.
Any thoughts?
Comments
Clemens came up with a way of resizing the ROM font to be about half size.
But, other than that, I don't think there's much you can do there...
Thanks Ray, I assumed.
Is there anything in this drawbitmap that would allow the row/col values to be overridden? ie lets say I want to generate a number, letter, group of letters or words in a bitmap to .dat file, then display something on a pixel boundary and not the fixed row/col boundaries. Is that possible? I would think it could be easier to be able to draw a letter using %00001000 type format to be used as data and skip the pixel creating software>bmp>.dat file. Drawing pixels boundary items does not seem possible with this driver, it seems it is either one or the other.
So, the bitmap has to be aligned, like the regular display characters, to 16 pixel by 16 pixel tiles...
If this is possible, what would be the method to point the addresses in Drawbitmap to the other cogs?
DrawBitmap(@graphic76_data, @graphics76_info)
I can easily use space on the eeprom but that is a last resort due to the slow load speed.
Heck what am I talking about. If I have hit 8000 longs, then there is no storage space left anywhere except for external methods.
You can use monochrome (1-bit) graphics as much as possible.
If you don't need all the graphics on the screen at the same time, you could swap them in and out from external memory...
Also, I just made a 1/2 resolution driver for NH4. The screen is then 240x136 (instead of the native 480x272) and everything is 2X bigger...