gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

News > DMA Text

#7893 - krom - Fri Jun 27, 2003 6:04 pm

[Images not permitted - Click here to view it]
Here is a simple code sample from Lupin to display text using DMA:

I wrote an simple example on how to render text, maybe someone is
interested in this, since it also has an nice DMA part too.


Get the text demo and C source straight from the main site!

#7895 - niltsair - Fri Jun 27, 2003 6:33 pm

Since 'How do I write some text?' is an often asked question, perhaps a link to this code should be added in the faqs section.

#7990 - Ninja - Mon Jun 30, 2003 3:53 am

Erm... just curious. What's the copyright like on the font that was submitted with this?

I wrote my own algorithm for text out weeks ago, but I never actually got around to hunting down a font to use with it, and when I saw this one... well... I could help myself. ;)

So am I free to actually use this font for making stuff with, or is it just a placeholder until I can find/make something more original?

#8002 - Sweex - Mon Jun 30, 2003 11:43 am

Copyrights on fonts is rather dodgy. By that I mean that it is really hard for the creator (owner of copyright) of the font to sue anyone. As far as I know, you are allright using pretty much any font as long as you do not directly distribute the file (ie. .ttf) with your application. In this case, the font is converted into a bitmap so it should be ok. (If lupin did actually use an existing font and not created it himself!)

Obviously, you might want to be carefull using corporate fonts like the typical Coca Cola or Mars font. I wouldn't worry about it too much!

#8018 - tepples - Mon Jun 30, 2003 8:13 pm

I'll work on a text library, demonstrating several ways to draw text to the GBA display. Once I'm done, I'll add it to the FAQ.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#8020 - Ninja - Mon Jun 30, 2003 8:31 pm

Sweex wrote:
Copyrights on fonts is rather dodgy. By that I mean that it is really hard for the creator (owner of copyright) of the font to sue anyone. As far as I know, you are allright using pretty much any font as long as you do not directly distribute the file (ie. .ttf) with your application. In this case, the font is converted into a bitmap so it should be ok. (If lupin did actually use an existing font and not created it himself!)

Obviously, you might want to be carefull using corporate fonts like the typical Coca Cola or Mars font. I wouldn't worry about it too much!


Thank you very much for your info. :)