kkangto0

Villager
Member
Joined
May 1, 2021
Messages
10
Reaction score
3
First Language
Korean
Primarily Uses
RMMV
After purchasing this plugin, I set up a custom font (Aa시리우스.ttf) as follows.
What do I need to do in the script?

깃허브1.PNG

This is the order of the plugins I'm using.

This is a plugin script. (I delete that)


Should I do something here?

깃허브4.PNG

This is a plugin setting.

깃허브5.PNG


Finally, this is the GameFont script.

When I test play the game, the custom font comes out normally.
(I haven't even installed this font on my computer.)
However, after build, when playing on Steam, the font is changed to the default font.
Why is the plugin not working?

Custom fonts can be loaded from Steam without having to use the font load plugin before.
Printed out, but an error occurred and the previous build was disabled.
 
Last edited:

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,495
Reaction score
1,723
First Language
Dutch
Primarily Uses
RMMV
load custom fonts does work, but I think you need to use in the message box
\fn<FONTNAME>text here to change the text of the FONTNAME.

so you can add many fonts as you like to add.

so how do you use it why it doesn't work?
did you put the fonts.tff in the fonts folder?

(I think showing paid plugins code is forbidden).
 

kkangto0

Villager
Member
Joined
May 1, 2021
Messages
10
Reaction score
3
First Language
Korean
Primarily Uses
RMMV
You mean, do you mean to write \fn<FONTNAME> in the game text?
So, can't I set the font before the game starts?

I put this font in the fonts folder.

load custom fonts does work, but I think you need to use in the message box
\fn<FONTNAME>text here to change the text of the FONTNAME.

so you can add many fonts as you like to add.

so how do you use it why it doesn't work?
did you put the fonts.tff in the fonts folder?

(I think showing paid plugins code is forbidden).
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,495
Reaction score
1,723
First Language
Dutch
Primarily Uses
RMMV
if you want it as default, you need to alter the css file, otherwise,
loadCustomFont is used for changing fonts during gameplay :)
 

kkangto0

Villager
Member
Joined
May 1, 2021
Messages
10
Reaction score
3
First Language
Korean
Primarily Uses
RMMV
if you want it as default, you need to alter the css file, otherwise,
loadCustomFont is used for changing fonts during gameplay :)
Oh...
I only want to use this one font in my game.
Which css can I modify?
What can I adjust in LoadCustomFont script?
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,495
Reaction score
1,723
First Language
Dutch
Primarily Uses
RMMV
the one of @font-face where gamefont = default.
if you change that to the font you want, it will take effect.

otherwise, I believe SRD had a font type change that can be placed
with either 1 main font or multiple font they can choose from.

but for 1 main font, you just use the image of @font-face {
font-family: NAME (short one)
url-src: fontname.ttf }

than restart MV and it take place if the font is in the font folder.

I suggest to let gamefont and the other stay in place :)
 
Last edited:

kkangto0

Villager
Member
Joined
May 1, 2021
Messages
10
Reaction score
3
First Language
Korean
Primarily Uses
RMMV
Thanks for the comment.
However, if I delete the code from gamefont and apply only the custom font as shown below, the game does not run and the LOADING screen does not end.

I don't see any errors in the developer tools.

깃허브1.PNG

If I fix this as below,

깃허브1.PNG

깃허브2.PNG

I am getting an error like this.

the one of @font-face where gamefont = default.
if you change that to the font you want, it will take effect.

otherwise, I believe SRD had a font type change that can be placed
with either 1 main font or multiple font they can choose from.

but for 1 main font, you just use the image of @font-face {
font-family: NAME (short one)
url-src: fontname.ttf }

than resart MV and it take place if the font is in the font folder.

I suggest to let gamefont and the other stay in place :)
 
Last edited:

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,495
Reaction score
1,723
First Language
Dutch
Primarily Uses
RMMV
if you have a vanilla project, copy the css from that one and place it
in the project you currently use.

disabele "loadCustomFonts" and see if it works, if it does,
jus change the line src: with the .ttf file that is used.

@font-face { font-family: GameFont; src: url("mplus-1m-regular.ttf"); }

"mplus-1m-regular.ttf" <- is the font in the fonts folder too, if this file
font is not inside it, you get the error as well.

if you double click it, you see the actual name of the fond,
and that's the name you need to use (without space), if it has spaces
like: this is my font.ttf, it become -> this_is_my_font.ttf
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
863
Reaction score
435
First Language
PT-BR
Primarily Uses
RM2k3
Did you try to rename the font so as not to use Korean characters?
Perhaps he is returning this way:
Code:
path/%EC%8B%9C%EB%A6%AC%EC%9A%B0%EC%8A%A4.ttf

Try to rename the file to:
AaSirius.ttf
 

kkangto0

Villager
Member
Joined
May 1, 2021
Messages
10
Reaction score
3
First Language
Korean
Primarily Uses
RMMV
Oops, I set the custom font to a different font and posted and played it on Steam.
The font was printed normally, and the file name of the font was English.

I sent an e-mail to the place where I purchased the custom font and asked for the full name of the font file to be changed to English.
(When I renamed the file myself, because it didn't work)
Aa시리우스 -> AaSirius
Fortunately, the font seller quickly changed its official name to English and gave it back to me.

I put this back in and posted it on steam, and I checked that it outputs fine!
If there is another problem, this sometimes doesn't appear on the title screen. (intermittently)
However, it is displayed normally in in-game.
Why can't I sometimes load custom fonts on the title screen?

if you have a vanilla project, copy the css from that one and place it
in the project you currently use.

disabele "loadCustomFonts" and see if it works, if it does,
jus change the line src: with the .ttf file that is used.

@font-face { font-family: GameFont; src: url("mplus-1m-regular.ttf"); }

"mplus-1m-regular.ttf" <- is the font in the fonts folder too, if this file
font is not inside it, you get the error as well.

if you double click it, you see the actual name of the fond,
and that's the name you need to use (without space), if it has spaces
like: this is my font.ttf, it become -> this_is_my_font.ttf
 

kkangto0

Villager
Member
Joined
May 1, 2021
Messages
10
Reaction score
3
First Language
Korean
Primarily Uses
RMMV
Did you try to rename the font so as not to use Korean characters?
Perhaps he is returning this way:
Code:
path/%EC%8B%9C%EB%A6%AC%EC%9A%B0%EC%8A%A4.ttf

Try to rename the file to:
AaSirius.ttf

Oh, I wish I had seen your reply sooner...
Like you said, I solved this problem by changing the font name to English.
However, I often faced the problem of not loading custom fonts in the title screen.
(Sometimes default fonts come out, sometimes custom fonts come out normally)
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,495
Reaction score
1,723
First Language
Dutch
Primarily Uses
RMMV
do you use any plugin related to the title?
if you do, this might be the problem, if not, that I dont know why.
 

kkangto0

Villager
Member
Joined
May 1, 2021
Messages
10
Reaction score
3
First Language
Korean
Primarily Uses
RMMV
do you use any plugin related to the title?
if you do, this might be the problem, if not, that I dont know why.

I am not using plugins that are directly related to the title.
I think I need to adjust the location of the load custom font plugin.
First of all the problem has been solved, so I have time to do it slowly.
Thank you so much for the answer.
I will try to make a good game.
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
863
Reaction score
435
First Language
PT-BR
Primarily Uses
RM2k3
Any time!
It is just a theory, but it may be that the name of your game folder is in Korean and the Plugin is not prepared for this situation.

It is recommended that you do not have files or folders with:
Non-English characters
space (use underscore)
 

kkangto0

Villager
Member
Joined
May 1, 2021
Messages
10
Reaction score
3
First Language
Korean
Primarily Uses
RMMV
Any time!
It is just a theory, but it may be that the name of your game folder is in Korean and the Plugin is not prepared for this situation.

It is recommended that you do not have files or folders with:
Non-English characters
space (use underscore)

Oh, your words seem to make sense.
I will try to edit the filenames in English as much as possible...!
I'll check this out the next time I update my game! :)
 

Latest Threads

Latest Posts

Latest Profile Posts

I want to learn Javascript to create a custom menu, but I don't really know where to start.
One uncomfortable truth that has withstood the test of time, is how most people will stand by while they see a crime happening, unless it's illegal to stand by. We probably wouldn't have stories about "special heroes" or games about heroes if the "everyday common folk" were largely capable of being heroes. Heroes face dangers that most people are not willing to.
I'm having toooo much fun designing the new MP (Mental Psyche) system. I've only worked it out for enemies so far, but it's fun to stun them, then go after their MP and delete them instead to farm for better item drops.
anyone know of a place I can promote my game? sorta like game awards but for indie devs, like a place where I can drop a trailer and like stir up some hype
Doing RPG Maker News for 17th October 2021

Forum statistics

Threads
115,882
Messages
1,093,697
Members
151,126
Latest member
LAB00M
Top