Changing Font

Seriel

Veteran
Veteran
Joined
Aug 16, 2014
Messages
3,018
Reaction score
508
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
570
Reaction score
156
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
122
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

palatkorn wrote on Kes's profile.
Hello i have a question Regarding the topic of games in my development, is there anything that I can't post yet?

"Your service has been identified as part of an outage. This is expected to be restored by 7pm IN SEVEN DAYS!!!" Guess I won't be around as much over the next week :(
Ami
tethering is my lifesaver,especially when computer or laptop doesn't support internet connection.
convention concluded, i'm glad the books well received and sold out
not every content is decent, but i'll be better for the next work.

now back to game developing
I hope to be able to post my vxace resource edits this Wednesday.
Not sure if I'll get to the library though.

Forum statistics

Threads
94,464
Messages
921,114
Members
124,293
Latest member
ravichah
Top