Changing Font

Seriel

Veteran
Veteran
Joined
Aug 16, 2014
Messages
3,013
Reaction score
504
First Language
English
Primarily Uses
Other
Edit fonts/gamefont.css

Code:
@font-face {    font-family: GameFont;    src: url("FONT NAME GOES HERE.ttf");}
 

TheWhiteRose000

Veteran
Veteran
Joined
Jun 9, 2014
Messages
50
Reaction score
3
First Language
English
Primarily Uses
Edit fonts/gamefont.css

@font-face {    font-family: GameFont;    src: url("FONT NAME GOES HERE.ttf");}
Tried that, game just tries loading and I get a error message with every font I use. and I do keep the .ttf at the end.

 
Last edited by a moderator:

KockaAdmiralac

Cube-shaped garbage can
Veteran
Joined
Jun 15, 2015
Messages
569
Reaction score
153
First Language
Serbian
Primarily Uses
N/A
Where is your .ttf file located?

How is your .ttf file named?

It must be located in the fonts directory and named as you entered, in your case "Chrono Trigger Monospaced" (with extension .ttf)
 
Last edited by a moderator:

TheWhiteRose000

Veteran
Veteran
Joined
Jun 9, 2014
Messages
50
Reaction score
3
First Language
English
Primarily Uses
Its in the fonts, and I copy and paste the exact name from the file into the text area.

 
Last edited by a moderator:

KisaiTenshi

Veteran
Veteran
Joined
Oct 24, 2015
Messages
310
Reaction score
124
Edit fonts/gamefont.css

@font-face {    font-family: GameFont;    src: url("FONT NAME GOES HERE.ttf");}
Do not do this, this way.

The correct answer is  "I want to change the default font", copy the font to the fonts directory, then ADD the src.

@font-face { font-family: GameFont; src: url("FONT NAME GOES HERE.ttf"); src: url("mplus-1m-regular.ttf"); }That way if the font is removed or errors out, it tries the next one.

However if you want to change the font used for just one thing, eg with Yanfly's MessageCore plugin. Then you need to have alternate fonts available to do so. So you'd instead have something like

Code:
@font-face {    font-family: GameFont;    src: url("mplus-1m-regular.ttf");            }@font-face {    font-family: AlternateGameFont;    src: url("FONT NAME GOES HERE.ttf");            }
 

TheWhiteRose000

Veteran
Veteran
Joined
Jun 9, 2014
Messages
50
Reaction score
3
First Language
English
Primarily Uses
Do not do this, this way.

The correct answer is  "I want to change the default font", copy the font to the fonts directory, then ADD the src.

@font-face { font-family: GameFont; src: url("FONT NAME GOES HERE.ttf"); src: url("mplus-1m-regular.ttf"); }That way if the font is removed or errors out, it tries the next one.

However if you want to change the font used for just one thing, eg with Yanfly's MessageCore plugin. Then you need to have alternate fonts available to do so. So you'd instead have something like

@font-face { font-family: GameFont; src: url("mplus-1m-regular.ttf"); }@font-face { font-family: AlternateGameFont; src: url("FONT NAME GOES HERE.ttf"); }
I did what you said for the.

@font-face {

font-family: GameFont;

src: url("FONT NAME GOES HERE.ttf");

src: url("mplus-1m-regular.ttf");

}

But it still doesn't want to load the font I have picked.

Is there a reason why it doesn't work, something I'm missing or overlooking?



Edit: Got it working with a different font, same thing nothing is wrong with how you can it.

However now I just got to figure out how to increase the indent between words.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,050
Members
137,571
Latest member
grr
Top