Open source Font Library?
Open source Font Library?
Hey,
I have finally gotten VGA mode 13h running using VGA Ports, and I can print the character 'A' to the screen. I tried making my own character set, but I decided that I could just be lazy and use an existing library - if one exists. I know there are things like OpenType etc, but I just need something small and portable - I don't have a problem with re-writing parts of code. Also, It doesn't need to be the whole ASCII table, I'm really just interested in a-Z, 0-F.
I haven't found any thing on the forum search, wiki or google that I am interested in, so I was wondering if anyone had any ideas for me.
Thanks,
Michael
I have finally gotten VGA mode 13h running using VGA Ports, and I can print the character 'A' to the screen. I tried making my own character set, but I decided that I could just be lazy and use an existing library - if one exists. I know there are things like OpenType etc, but I just need something small and portable - I don't have a problem with re-writing parts of code. Also, It doesn't need to be the whole ASCII table, I'm really just interested in a-Z, 0-F.
I haven't found any thing on the forum search, wiki or google that I am interested in, so I was wondering if anyone had any ideas for me.
Thanks,
Michael
I'm pretty sure freetype is the de facto open source font rendering library for truetype fonts.
http://freetype.sourceforge.net/
http://freetype.sourceforge.net/
Sorry, I should of said that I'm really just interested in a font for VGA mode 13h, like an 8x8 or 8x7 font size, not something like FreeType or TrueType fonts, but like the fonts described in the Wiki.
- jerryleecooper
- Member
- Posts: 233
- Joined: Mon Aug 06, 2007 6:32 pm
- Location: Canada
You can find such fonts into /drivers/video in the linux source tree.
Linux itself is GPL but theses fonts must come from DR-DOS I guess, not so Kosher. Im also searching for a font.
http://overcode.yak.net/12 font a 8x8 font.
Linux itself is GPL but theses fonts must come from DR-DOS I guess, not so Kosher. Im also searching for a font.
http://overcode.yak.net/12 font a 8x8 font.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Why not ask your VGA card for the fonts? while you are in text mode the used font is stored in video memory. You just have to know where to look.t0xic wrote:Sorry, I should of said that I'm really just interested in a font for VGA mode 13h
VGA Hardware might help you there.
If you are just looking for a 8x8||8x7 font library, why not just make it yourself? it doesnt take much to make the letters A-Z in such a small array. Thats why I ended up doing. Once you get into larger arrays, then i can see it becoming extremely tedious. But as stated above, the fonts are there anyways, just look for them, or rummage through the linux source code.
Website: https://joscor.com
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
I know it workst0xic wrote:Thanks for the replies. I'll think I use Combuster's method, and if that fails, I'll go on to making the font by hand. Thanks everyone
--Michael
[Sample code] [Screenshot]
- jerryleecooper
- Member
- Posts: 233
- Joined: Mon Aug 06, 2007 6:32 pm
- Location: Canada
I have found a good site for some small fonts.
http://dsg4.com/04/extra/bitmap/index.html
license, you may use them as you like.
http://dsg4.com/04/extra/bitmap/index.html
license, you may use them as you like.