LoginLogin

Where can I find a mapping for font definitions?

Root / Programming Questions / [.]

cujo1992Created:
This should be really easy for some of you out there. I started to modify the default font file but I cannot figure out the mapping of individual symbols to the specific chr$ codes. Basic ascii symbols (letters, numbers, punctuation) are easy ... but the myriad of other symbols are proving quite a mystery. I used a brute force method via direct mode to determine that one of the first symbols in the file had a chr$ code of 57841 (if I remember correctly ).... just figured there should be a better way than that. And if this IS in the manual somewhere please do let me know. Perhaps I'm looking in the wrong spot! Thanks in advance!

The character code for a character can be obtained from the ASC instruction. For example, ASC("A") is 65. Unfortunately, there is no direct conversion from ASCII code to font GRP though. Hope this helps out.

Hi slackersnail. Thanks for the note! This is precisely the brute force method I used. The many symbols in the grp file don't follow a simple ascii mapping though... so perhaps there exists a secret holy grail out there! :)


http://smilebasic.com/en/media/pdf/ListOfCharacterCodes.pdf
Woo hoo! The holy grail. Now I just need to figure out what I did wrong in looking for it. THANKS!!

I googled smile basic font ascii and it was the second result. :)