pcface
bitmap-font-css
pcface | bitmap-font-css | |
---|---|---|
13 | 1 | |
78 | 16 | |
- | - | |
5.3 | 10.0 | |
10 months ago | over 1 year ago | |
Python | ||
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pcface
-
Game Font Forensics
I hold VileR's work on int10h.org in high esteem, given its exceptional quality. As someone whose initial exposure to computers was through IBM PCs, I find VileR's website to be a treasure trove of IBM PC fonts, BIOS fonts, and related resources.
Inspired by IBM PC games from the 1990s, I aspired to create my own invaders-like game. However hindered by limited access to computers and limited computer programming knowledge, the most I could manage to make were a few text-based adventure games. Although 25 years too late, during the COVID-19 pandemic, I revisited this dream and spent a weekend writing my own Invaders game[1] using HTML5 Canvas.
Initially, I used CanvasRenderingContext2D: fillText() to display text (current score, info screen, etc.). However, dissatisfied with the text rendering quality, I began looking for IBM PC OEM fonts online and came across the Oldschool PC Fonts[2] on int10h.org. I downloaded the font packs from the website, used a Python script to convert them to bitmaps[3] (arrays of integers), and then used the bitmaps to draw text on the canvas, one cell at a time, to get pixel-perfect results!
I eventually switched to a different font pack called Modern DOS[4] developed by Jayvee Enaguas. Nevertheless given how extensive VileR's website is and how convenient the font preview tools[5] on the website are, int10h.org remains as my go-to website whenever I am doing any type of retrocomputing work for fun.
[1] https://susam.net/invaders.html
[2] https://int10h.org/oldschool-pc-fonts/
[3] https://github.com/susam/pcface
[4] https://www.dafont.com/modern-dos.font
[5] https://int10h.org/oldschool-pc-fonts/fontlist/font?ibm_vga_...
-
Demo of Bitmap Arrays for Rendering CP437 Glyphs Using IBM PC OEM Fonts
Although not included in this demo, VileR does provide aspect-correct variants of the fonts at https://int10h.org/oldschool-pc-fonts/fontlist/. One can take the scripts at https://github.com/susam/pcface and generate the bitmap arrays for the aspect-correct variants too.
-
What Is Textmode?
> It typically uses 256 characters exemplified by the font CP437
I have very fond memories of code page 437 (CP437). ASCII code 1 is a smiley face in CP437. How cool is that!
Shameless plug: I recently wrote a small toolkit to render CP437 characters on HTML5 canvas for a retro-style game project I was working on. Source: https://github.com/susam/pcface Demo: https://susam.github.io/pcface/src/demo.html
- Bitmap arrays for rendering CP437 glyphs using IBM PC OEM fonts
- Show HN: Bitmap arrays for rendering CP437 glyphs using IBM PC OEM fonts
- Show HN: PC Face: Bitmap arrays for rendering CP437 glyphs using PC OEM fonts
- PC Face: Bitmap arrays for rendering CP437 glyphs using IBM PC OEM fonts
- Bitmap Arrays for Rendering CP437 Glyphs Using IBM PC OEM Fonts
- PC Face: Bitmap Arrays for Rendering CP437 Glyphs Using IBM PC OEM Fonts
bitmap-font-css
-
Demo of Bitmap Arrays for Rendering CP437 Glyphs Using IBM PC OEM Fonts
I've been able to get mostly-crisp bitmap fonts via some CSS hacks. It's still a work-in-progress but I've been documenting my findings here: https://github.com/DavidBuchanan314/bitmap-font-css
You can see a bit of a demo on my homepage[1], although note that I'm using the "Flexi IBM VGA"[2] font which is a hybrid bitmap/vector font (the block drawing characters, for example, are still pixel-perfect)
[1] https://www.da.vidbuchanan.co.uk/
[2] https://int10h.org/blog/2018/05/flexi-ibm-vga-scalable-truet...
What are some alternatives?
saman - Saman Dere Sans-Serif Font
chiron-sans-hk - 昭源黑體:現代筆形風格,平衡標準字形和印刷體慣用筆形的免費開源黑體字型
public-sans - A strong, neutral, principles-driven, open source typeface for text or display
Monocraft - A monospaced programming font inspired by the Minecraft typeface
Work-Sans - A grotesque sans.
fixedsys-css - Fixedsys - Old Fashion Font
beautiful-web-type - In-depth guide to the best open-source typefaces: https://beautifulwebtype.com
awesome-css-frameworks - List of awesome CSS frameworks in 2024