My Client : http://img822.imageshack.us/img822/4774/31587756.png
A Players Client : http://files.byondhome.com/Kalzar/Picture%206.png
Can anyone please tell me why their client does not have the same font? Thank you so much.
ID:264858
![]() Jan 5 2011, 4:00 pm
|
|
![]() Jan 5 2011, 4:44 pm
|
|
Their computer might not have that font installed so it's switching to the default font :P, that font probably isn't on his computer by default or something.
|
Last I checked not really, either you make a separate installer for the font completely or you might want to try looking into JavaScript and embedding a script into a browser to make the client download the font.
|
I think it went something like this...
Drag the font into your Game Folder. Right Click the font and click on Properties. Then in 'Type Of File:' Check to see if it is a .ttf (TrueType Font) or a .otf (OpenType Font) Note down the name of the font too. var/list/extra_resources = list(\ Example: var/list/extra_resources = list(\ I'm not really sure about this, but it doesn't hurt to try, right? --On a side note, I found this from the Skin Reference. Just scroll down to "Fonts" (If you press CTRL + F and type in "Fonts", go to the second Find); it should explain this more briefly. |
Awesome, too bad I saw this as I was going to bed. I'll try it out tomorrow on my test server. If you want to try it out check here :
http://www.byond.com/developer/forum/?id=770863 |
The simple solution to your problem; place the font file into your game's root folder and assign it a constant variable.
var/const/fontfile = 'font.ttf' What this does is include the font in your game's .rsc files, which go straight to the players' cache files to use in your game. You can alternatively create an array that stores files to be inserted into the rsc, example: var/list/resources=list('font.ttf','animation.swf','movie.avi','stuff.txt') |