FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FreeType and a single texture font

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
jaak



Joined: 02 Jul 2006
Posts: 5

PostPosted: Thu Jul 27, 2006 7:54 am    Post subject: FreeType and a single texture font Reply with quote

I use AngelCode's Bitmap Font Generator (www.angelcode.com/products/bmfont/) to create a single bitmap containing all the characters of a font for my Derelict OpenGL Application. The problem is that as far as i know most font licenses do not allow them to be distributed like this. Is there a module available somewhere for creating a single texture from a font using freetype so that i can generate this bitmap at runtime instead of using the bitmap font generator?
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Thu Jul 27, 2006 6:50 pm    Post subject: Re: FreeType and a single texture font Reply with quote

jaak wrote:
I use AngelCode's Bitmap Font Generator (www.angelcode.com/products/bmfont/) to create a single bitmap containing all the characters of a font for my Derelict OpenGL Application. The problem is that as far as i know most font licenses do not allow them to be distributed like this. Is there a module available somewhere for creating a single texture from a font using freetype so that i can generate this bitmap at runtime instead of using the bitmap font generator?


You're wrong about distribution restrictions, unless something has changed recently that I don't know of. BFG and the other bitmap font creators would be useless if that were true. It's the TT font files themselves that can't be distributed. Bitmaps can. That's why these tools were created in the first place.
Back to top
View user's profile Send private message Send e-mail
Crispy



Joined: 26 Nov 2005
Posts: 67

PostPosted: Fri Jul 28, 2006 2:48 am    Post subject: Reply with quote

I wouldn't imagine that the format matters at all, whether or not it's a TrueType file or one converted into a bitmap. IANAL, but it seems to me that a texture intended for use as a font still counts as a font.

I just try to pick font files with very clear licences, so that I know I'm allowed to distribute them. I'm using Bitstream Vera (http://www.gnome.org/fonts/) in my current project for exactly this reason. (Plus it's a pretty good family of fonts.)
Back to top
View user's profile Send private message
jaak



Joined: 02 Jul 2006
Posts: 5

PostPosted: Sun Jul 30, 2006 8:35 am    Post subject: Reply with quote

Crispy wrote:

I just try to pick font files with very clear licences, so that I know I'm allowed to distribute them. I'm using Bitstream Vera (http://www.gnome.org/fonts/) in my current project for exactly this reason. (Plus it's a pretty good family of fonts.)


Thanks for the link. I had trouble finding free fonts with all the international characters included as well, but these seem complete. And the license is very permissive.

Ps. For some reason only Bitstream Vera Sans Mono displays any characters in the bitmap font generator.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group