Need advice regarding fonts

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
waraiotoko
Prole
Posts: 33
Joined: Thu Oct 06, 2011 6:08 pm

Need advice regarding fonts

Post by waraiotoko »

I have a quick question: how is everyone here loading fonts for their games? Is everyone using free fonts, putting the .ttf within their game directory or do some of you load fonts from the Windows directory? I'm using Windows 7 right now and the "true" path to a font is really convoluted, plus if I load from the Windows directory I would eliminate Mac and Linux support.

Any advice? Should I switch to a free font? If so, is there a good replacement for Mangal out there?

Thanks in advance.
User avatar
Ellohir
Party member
Posts: 235
Joined: Sat Oct 22, 2011 11:12 pm

Re: Need advice regarding fonts

Post by Ellohir »

I think putting the ttf on the game is the best solution. It's not a big file, and it's really easy to use. Each operating system has different fonts, even between versions of the same family. So I wouldn't try difficult things, just get a free font that you like :nyu:
waraiotoko
Prole
Posts: 33
Joined: Thu Oct 06, 2011 6:08 pm

Re: Need advice regarding fonts

Post by waraiotoko »

Ellohir wrote:I think putting the ttf on the game is the best solution. It's not a big file, and it's really easy to use. Each operating system has different fonts, even between versions of the same family. So I wouldn't try difficult things, just get a free font that you like :nyu:
Thanks, I'll have to find a replacement for the Microsoft font I'm using.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Need advice regarding fonts

Post by Robin »

Make sure the license of the font permits you to use it in your game and distribute it. A lot of "free" fonts floating around have really restrictive licenses, and you don't want that.
Help us help you: attach a .love.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Need advice regarding fonts

Post by kikito »

I can't recommend Google Webfonts enough:

http://www.google.com/webfonts

It's 320 font families (plus variants), completely open sourced and free to use however you want.

Downloading them is a bit tricky - the easiest way is choosing the fonts you want, and then looking for the "download your collection" button (upper right).
When I write def I mean function.
User avatar
Kadoba
Party member
Posts: 399
Joined: Mon Jan 10, 2011 8:25 am
Location: Oklahoma

Re: Need advice regarding fonts

Post by Kadoba »

Wow that is a great resource kikito. Thanks for sharing.
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Need advice regarding fonts

Post by Jasoco »

I think it would be neat if we could call system fonts in a list like you can with CSS where the program uses the first available font in the list. We could have "Helvetica Neue", "Arial" and it would try Helvetica first, then Arial if that doesn't exist, and if neither exist, it defaults to the Löve font Vera.

Personally I prefer to make my games have a pixelly style so I use image fonts which is much smaller and free of licensing issues.
IQuit
Prole
Posts: 7
Joined: Mon Jan 02, 2012 2:51 am

Re: Need advice regarding fonts

Post by IQuit »

Some fonts can be a large as 10MB, distributing is not always an option ...
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Need advice regarding fonts

Post by Jasoco »

That's why it would make sense to optionally allow us to call fonts in the same method you call them in CSS and HTML. Optionally. As an option. Since pretty much everyone has either Helvetica or Arial. And if not, then fall back on Vera. Makes sense. Do like browsers do.
User avatar
MarekkPie
Inner party member
Posts: 587
Joined: Wed Dec 28, 2011 4:48 pm
Contact:

Re: Need advice regarding fonts

Post by MarekkPie »

Jasoco wrote:That's why it would make sense to optionally allow us to call fonts in the same method you call them in CSS and HTML. Optionally. As an option. Since pretty much everyone has either Helvetica or Arial. And if not, then fall back on Vera. Makes sense. Do like browsers do.
Just make sure that option is optionally optional.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 7 guests