monobit icon indicating copy to clipboard operation
monobit copied to clipboard

Atari Font support

Open th-otto opened this issue 3 years ago • 1 comments

Not really an issue, but if you ever look into supporting Atari (GEM) bitmap fonts again. you may want to look at https://github.com/th-otto/gemfedit/blob/master/tools/fntconv.c. That repo also has the 6x6 system font (system08.fnt, was used for small icon lables) and the 16x32 system font (system20.fnt, only present in TT machines). And of course, that tool uses its own text-based format ;)

th-otto avatar Jul 10 '21 05:07 th-otto

Hi, thanks for the link!

robhagemans avatar Sep 05 '21 17:09 robhagemans

Hi @th-otto, thanks again for the link to your repo. I had another look at Atari formats and did a base implementation of a GDOS font format reader, mostly based on the documentation in the Atari compendium and on John Elliott's site http://www.seasip.info/Gem/filefmt.html .I noticed some GEM fonts have compressed bitmaps which neither of these sources discuss. In your repo I saw you had added a decoding algorithm - did you find any documentation for the compression format, or is this perhaps based on GEM sources or reverse-engineered from scratch?

robhagemans avatar Dec 04 '22 08:12 robhagemans

Uh, its been a long time since i implemented this. IIRC, it was taken from some PC-GEM sources. I also never saw any GDOS fonts in compressed format for Atari, only for PC-GEM. However the fontviewer is able to display the compressed fonts i could find.

th-otto avatar Dec 04 '22 09:12 th-otto

Thanks for the fast reply! From your code, I gather it's a form of run length encoding of the leading zeros in a field of varying bit width, followed by the remaining pixels uncompressed. I guess I should be able to make that work...

robhagemans avatar Dec 04 '22 10:12 robhagemans

Actually, loooks like this is a description of the scheme: https://github.com/shanecoughlan/OpenGEM/blob/master/source/OpenGEM-7-RC1-SDK/OpenGEM-7-SDK/GEM%20VDI%20AND%20SOURCE%20CODE/GEM%203%20VDI%20source%20code/DECODE.A86#L50

robhagemans avatar Dec 04 '22 10:12 robhagemans