ppsx
13th March 2009, 18:27
This is the most simple way (well, I think so, 'coz I can't rebuild exe from sources ;)) to make DosBox readable.
After analysing dosbox sources I've found that font definitions are in int10_memory.cpp:
* Bit8u int10_font_08[256 * 8]
* Bit8u int10_font_14[256 * 14]
* Bit8u int10_font_16[256 * 16]
By default Dosbox uses 'int10_font_16' - 8x16 font.
So I've extracted 256*16 bytes of data from dosbox.exe and edited it in simple raster font editor. Then I've replaced old font definitions with new and... Yes! :) I can uderstand NC ;)
The idea was simple: DosBox uses 640x480 screen (stardard VGA), my E66 uses 320x240. In my phone I can see only 1/4 pixels.
I've had to modify fonts from 8x16 -> 4x8 (yes, so small...).
Look:
________
________
___*____
__***___
_**_**__
**___**_
**___**_
*******_
**___**_
**___**_
**___**_
**___**_
________
________
________
________
And now:
________
________
__**____
__**____
**__**__
**__**__
**__**__
**__**__
******__
******__
**__**__
**__**__
**__**__
**__**__
________
________
And on the phone it looks like:
____
_*__
*_*_
*_*_
***_
*_*_
*_*_
____
Attachment contains:
* dosbox.f16 - raw 8x16 font data (original) - for those, who can make better-look fonts (my are readable, but rather ugly...),
* dosbox-m.f16 - raw 8x16 font data (modified),
* dosbox.exe - 4 modified (each in separate dir - new/old->full/slim) doxbox.exe files.
You only need to copy appopriate dosbox.exe version to c:\sys\bin folder with any file manager. But before you overwrite, make a copy of the old file!!!
That's all, folks ;)
BTW. I've changed only most important fonts: A-Z a-z 0-9 !#$%^*()_+-=[]{}'"/?<>,.|\
After analysing dosbox sources I've found that font definitions are in int10_memory.cpp:
* Bit8u int10_font_08[256 * 8]
* Bit8u int10_font_14[256 * 14]
* Bit8u int10_font_16[256 * 16]
By default Dosbox uses 'int10_font_16' - 8x16 font.
So I've extracted 256*16 bytes of data from dosbox.exe and edited it in simple raster font editor. Then I've replaced old font definitions with new and... Yes! :) I can uderstand NC ;)
The idea was simple: DosBox uses 640x480 screen (stardard VGA), my E66 uses 320x240. In my phone I can see only 1/4 pixels.
I've had to modify fonts from 8x16 -> 4x8 (yes, so small...).
Look:
________
________
___*____
__***___
_**_**__
**___**_
**___**_
*******_
**___**_
**___**_
**___**_
**___**_
________
________
________
________
And now:
________
________
__**____
__**____
**__**__
**__**__
**__**__
**__**__
******__
******__
**__**__
**__**__
**__**__
**__**__
________
________
And on the phone it looks like:
____
_*__
*_*_
*_*_
***_
*_*_
*_*_
____
Attachment contains:
* dosbox.f16 - raw 8x16 font data (original) - for those, who can make better-look fonts (my are readable, but rather ugly...),
* dosbox-m.f16 - raw 8x16 font data (modified),
* dosbox.exe - 4 modified (each in separate dir - new/old->full/slim) doxbox.exe files.
You only need to copy appopriate dosbox.exe version to c:\sys\bin folder with any file manager. But before you overwrite, make a copy of the old file!!!
That's all, folks ;)
BTW. I've changed only most important fonts: A-Z a-z 0-9 !#$%^*()_+-=[]{}'"/?<>,.|\