10-01-2025, 08:48 PM
(This post was last modified: 10-01-2025, 08:54 PM by onetruetroy.)
My first post and project that I think is useful and complete enough to share.
I created a font that defines the characters of Code Page 437 in a 12x24 bounding box. I tried with BDF and could not wrap my head around it. Same with FontForge. I discovered FontStruct and that made sense to me since it's perfect for creating bitmap fonts and downloading as TTF. I use this font in the IDE and in my text based programs. This follows the Unicode rules and the CP437 characters are in their correct Code Points throughout the different areas of the Basic Multilingual Plane. When I use PRINT for ASCII characters, they will map correctly and the proper glyph is displayed even in SCREEN 0 when the font is loaded as 24 height and MONOSPACE. The Null character seems to always show up as a boxed X, so I just _MAPUNICODE 0 TO 32 and that takes care of it.
Since I wanted square tiles and objects for Roguelike and still print text with 1:2 ratio, I chose to add the custom characters to the Private Use Area U+E000 - U+EFFF. These will mainly be static square tiles of various patterns, objects, creatures, etc. I will definitely add animation frames as individual characters for player and actor avatars. I think I'll be able to add glyphs that extend outside the bounding box and will experiment. I'm defining U+F000 - U+F8FF as multiple 256-character sets starting with a stylized CP437 from U+F000 - U+F0FF. This lets me have ALL the characters I want without having to load multiple fonts. Maybe that's an awkward or non-standard way, but it works great for me.
I also use this as my IDE font at 24 height.
Please, try this font if you are interested and I would enjoy any advice and suggestions.
FontStruct relies on ad revenue, so do NOT click on the big DOWNLOAD boxes. Click the small yellow Download below the text sample.
I install the TTF file and have no problems. I have not tested out the other font formats and cannot vouch for the validity or accuracy of those.
Code Page 437 Font 12x24 with custom characters
Text of link in case I didn't format it correctly:
https://fontstruct.com/fontstructions/sh...p437-12x24
Screen 13 Private Use Area U+E000...
![[Image: CP437-12x24-Screen13-Private-Use-Area.png]](https://i.ibb.co/8g1fPWrF/CP437-12x24-Screen13-Private-Use-Area.png)
Screen 0 ASCII Extended
![[Image: CP437-12x24-Screen0.png]](https://i.ibb.co/tPDpdGyp/CP437-12x24-Screen0.png)
Screen 13 ASCII Extended
I created a font that defines the characters of Code Page 437 in a 12x24 bounding box. I tried with BDF and could not wrap my head around it. Same with FontForge. I discovered FontStruct and that made sense to me since it's perfect for creating bitmap fonts and downloading as TTF. I use this font in the IDE and in my text based programs. This follows the Unicode rules and the CP437 characters are in their correct Code Points throughout the different areas of the Basic Multilingual Plane. When I use PRINT for ASCII characters, they will map correctly and the proper glyph is displayed even in SCREEN 0 when the font is loaded as 24 height and MONOSPACE. The Null character seems to always show up as a boxed X, so I just _MAPUNICODE 0 TO 32 and that takes care of it.
Since I wanted square tiles and objects for Roguelike and still print text with 1:2 ratio, I chose to add the custom characters to the Private Use Area U+E000 - U+EFFF. These will mainly be static square tiles of various patterns, objects, creatures, etc. I will definitely add animation frames as individual characters for player and actor avatars. I think I'll be able to add glyphs that extend outside the bounding box and will experiment. I'm defining U+F000 - U+F8FF as multiple 256-character sets starting with a stylized CP437 from U+F000 - U+F0FF. This lets me have ALL the characters I want without having to load multiple fonts. Maybe that's an awkward or non-standard way, but it works great for me.
I also use this as my IDE font at 24 height.
Please, try this font if you are interested and I would enjoy any advice and suggestions.
FontStruct relies on ad revenue, so do NOT click on the big DOWNLOAD boxes. Click the small yellow Download below the text sample.
I install the TTF file and have no problems. I have not tested out the other font formats and cannot vouch for the validity or accuracy of those.
Code Page 437 Font 12x24 with custom characters
Text of link in case I didn't format it correctly:
https://fontstruct.com/fontstructions/sh...p437-12x24
Screen 13 Private Use Area U+E000...
![[Image: CP437-12x24-Screen13-Private-Use-Area.png]](https://i.ibb.co/8g1fPWrF/CP437-12x24-Screen13-Private-Use-Area.png)
Screen 0 ASCII Extended
![[Image: CP437-12x24-Screen0.png]](https://i.ibb.co/tPDpdGyp/CP437-12x24-Screen0.png)
Screen 13 ASCII Extended


![[Image: Screenshot-2025-10-05-213706.png]](https://i.ibb.co/FL1k2hy5/Screenshot-2025-10-05-213706.png)
![[Image: Screenshot-2025-10-05-213601.png]](https://i.ibb.co/vvd2YKhK/Screenshot-2025-10-05-213601.png)
I'm down to try it!