Pages: 1
  Print  
Author Topic: Quick question on fonts  (Read 4035 times)
Offline (Unknown gender) sorlok_reaves
Posted on: November 30, 2014, 03:37:08 pm
Contributor
Joined: Dec 2013
Posts: 260

View Profile
Hey all,

Just a quick question on fonts. I compiled An Untitled Story using a bunch of custom fonts, and when I copied the executable over to another machine, the fonts "just worked". This is by design, right? What I mean is, I don't have to worry about distributing the fonts with the game, right?
Logged
Offline (Male) Rusky
Reply #1 Posted on: November 30, 2014, 04:31:37 pm

Resident Troll
Joined: Feb 2008
Posts: 954
MSN Messenger - rpjohnst@gmail.com
View Profile WWW Email
I believe the fonts are turned into sprite sheets at compile time.
Logged
Offline (Unknown gender) sorlok_reaves
Reply #2 Posted on: November 30, 2014, 05:02:38 pm
Contributor
Joined: Dec 2013
Posts: 260

View Profile
Excellent! That's what I was hoping, thanks.
Logged
Offline (Male) Goombert
Reply #3 Posted on: November 30, 2014, 06:23:09 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
Yes, exactly as Rusky stated, we convert them to a sprite sheet and build them into the executable, this was in fact by Josh's design.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) TheExDeus
Reply #4 Posted on: November 30, 2014, 07:02:18 pm

Developer
Joined: Apr 2008
Posts: 1860

View Profile
Fonts are rendered on textures on compile time (done by LGM), which is then added to the executable as any other image data. One texture is generated with all the requested glyphs on it, then the texture positions of all glyphs are saved, which are then used for drawing. That is how GM does it as well. We sadly don't support loading fonts from external files right now. There was talk on how to do this with some external libraries, but nobody wanted to use 3rd party stuff it seems.
Logged
Offline (Male) Goombert
Reply #5 Posted on: November 30, 2014, 08:01:54 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
We don't actually need 3rd party libraries for generic font_add, WinAPI has it built in and stuff, but we may need a library for TIFF or whatever format it is, if I recall TIFF files or whatever are only supported on Windows for Studio or something like that, I can't even remember the file format off hand.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) sorlok_reaves
Reply #6 Posted on: November 30, 2014, 10:35:45 pm
Contributor
Joined: Dec 2013
Posts: 260

View Profile
Thanks for all the information everyone; now I fully understand what's going on behind the scenes.
Logged
Offline (Unknown gender) Darkstar2
Reply #7 Posted on: December 08, 2014, 08:36:59 pm
Member
Joined: Jan 2014
Posts: 1238

View Profile Email
Yes, exactly as Rusky stated, we convert them to a sprite sheet and build them into the executable, this was in fact by Josh's design.

and that's the way to avoid font dependency and legal issues.  From what I know GMS now supports TTF rendering, and if not mistaken they do embed the fonts in the EXE, some are (c) so I wonder if they do so illegally or only do so for non (c) ones....
Logged
Offline (Male) time-killer-games
Reply #8 Posted on: December 08, 2014, 11:25:33 pm

Contributor
Location: Virginia Beach
Joined: Jan 2013
Posts: 1178

View Profile Email
DS2~ fyi fonts that are copyrighted and used without the authors permission are always illegal, whether the font is in its  original TTF format or is converted to a texturepage, just as illegal regardless of the format, if it isnt your property, it just isnt, end of story.
Logged
Offline (Unknown gender) Darkstar2
Reply #9 Posted on: December 09, 2014, 12:29:25 am
Member
Joined: Jan 2014
Posts: 1238

View Profile Email
DS2~ fyi fonts that are copyrighted and used without the authors permission are always illegal, whether the font is in its  original TTF format or is converted to a texturepage, just as illegal regardless of the format, if it isnt your property, it just isnt, end of story.

lol - if that were the case then a lot of microsoft word users are breaking the law.  So by that definition if I use a font in word and print a document I am illegal ? If it were illegal don't you think many companies would be trouble ? All those developer tools with fonts support, illegal too ?

Logged
Offline (Male) Goombert
Reply #10 Posted on: December 09, 2014, 12:45:58 am

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
No it's the copyright of the font TKG, the ones in word are likely free or permissive DS2, and I do believe changing the format can sometimes get around that TKG, such as if it were vector instead of bitmap.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) time-killer-games
Reply #11 Posted on: December 09, 2014, 12:56:09 am

Contributor
Location: Virginia Beach
Joined: Jan 2013
Posts: 1178

View Profile Email
DS by "permision" as in counting public domain, free for personal/commercial use, and royalty free. :p as robert just stated, I am right, converting it to a texture page, which isnt a vector graphic, wont change who's the copyright holder or their terms.

My brain just exploded trying to read these posts I'm going to bed nighty night peeps!
« Last Edit: December 09, 2014, 12:59:09 am by time-killer-games » Logged
Offline (Unknown gender) TheExDeus
Reply #12 Posted on: December 09, 2014, 10:18:21 am

Developer
Joined: Apr 2008
Posts: 1860

View Profile
Quote
lol - if that were the case then a lot of microsoft word users are breaking the law.  So by that definition if I use a font in word and print a document I am illegal ? If it were illegal don't you think many companies would be trouble ? All those developer tools with fonts support, illegal too ?
How many fonts in the MS word are under monetary license? The answer is 0, because if there were, then they wouldn't be included in word or windows. For most fonts MS owns the copyright. Also, you mistake copyright with license. Copyright doesn't mean that you can't use it, it means you cannot say "I made it" and even worse, get money from that without consent of the copyright holder. Which basically means that the copyright holder has the main right to decide on who can and cannot use his work. Licenses on the other hand can be all different kinds, like GPL or MPL or BSD or whatever. This means that you can make a font, for which you automatically hold a copyright (under Berne Convention you get a copyright automatically and there isn't a process in which you need to get it), and then you can release that font freely with a license saying that anyone can copy it, modify it, and even sell it. If you don't allow a person to sell it, but they do, then you can get compensation and/or get them to stop, because you still hold the copyright no matter the license.

So normally you can still enforce the license even if the person has converted your vector font to a bitmap one. But that depends on the license.
Logged
Offline (Unknown gender) Darkstar2
Reply #13 Posted on: December 12, 2014, 12:44:16 pm
Member
Joined: Jan 2014
Posts: 1238

View Profile Email
BTW as  to MS word it uses all available/usable fonts you have installed on system, it does not restrict.....

As to FONT copyright and it's use, you are not allowed to SELL IT, true, but what I was wondering, what if I used a given font in my game, to write score or text and sell my game.....I am not directly selling the font but my game which happens to use a bitmap representation of the font, would I be illegal in the hands of the FONT (c) holder?  I am not embedding or distributing the font itself so it would have no use for the person playing my game and would not even be considered a "FONT" but a bitmap/texture map whatever.

Logged
Offline (Unknown gender) TheExDeus
Reply #14 Posted on: December 12, 2014, 01:31:33 pm

Developer
Joined: Apr 2008
Posts: 1860

View Profile
Quote
BTW as  to MS word it uses all available/usable fonts you have installed on system, it does not restrict.....
I know that. But there are already hundreds of pre-installed fonts, all of which are free to use as you please.

Quote
As to FONT copyright and it's use, you are not allowed to SELL IT, true, but what I was wondering, what if I used a given font in my game, to write score or text and sell my game.....I am not directly selling the font but my game which happens to use a bitmap representation of the font, would I be illegal in the hands of the FONT (c) holder?  I am not embedding or distributing the font itself so it would have no use for the person playing my game and would not even be considered a "FONT" but a bitmap/texture map whatever.
As with anything it depends on the license. If the license says they are free to be used, then you are free to use them. There is no single "font law" or something. There are many font sites which allow you to get them for free and use commercially (like google fonts here: http://www.google.com/fonts) or you can buy a commercial license that allows you to include it in your product as a bitmap here (http://www.losttype.com/ with license http://www.losttype.com/images/samples/License_Commercial_Sample.pdf). You can see that in the last example you can only install the font and use it on 1-5 computers (with the cheapest license), but you can include it in your final product, which would mean converting it into a bitmap and using that way for games. You can probably give the font file with the game itself as well, but only if it doesn't explicitly install it for the users. In this case the safe way would be to use the bitmap version.
Logged
Pages: 1
  Print