Change Fonts

Discussion in 'JS Plugin Requests' started by WeGotBeats, Jun 18, 2019.

  1. WeGotBeats

    WeGotBeats Music Producer/Game Developer Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    I wasn't sure where to post this. I use RPG Maker MV and I have tried literally every work-around for changing fonts. Shouldn't there be an easier option in the program where it makes this job easy?

    I literally tried all the suggestions on this forum including getting Yanfly's plugin and nothing seems to work. I keep getting a Now Loading screen. I don't understand how it works for some people but not for others.

    Really need to change the font for this game I am working on so either and update or some help would be greatly appreciated.
     
    #1
  2. bgillisp

    bgillisp Global Moderators Global Mod

    Messages:
    11,592
    Likes Received:
    11,581
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMVXA

    I've moved this thread to Plug-in Requests. Please be sure to post your threads in the correct forum next time. Thank you.



    This will probably take a plug-in in the end to do this.
     
    #2
  3. bazrat

    bazrat Veteran Veteran

    Messages:
    152
    Likes Received:
    76
    Location:
    Washington State
    First Language:
    English
    Primarily Uses:
    RMMV
    Have you tried galvs message style to change the font?
     
    #3
  4. WeGotBeats

    WeGotBeats Music Producer/Game Developer Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    Yes even that. At first I thought it was a plugin conflict but when I created a new project with nothing in it, it still doesn't work.
     
    #4
  5. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,451
    Likes Received:
    928
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    #5
  6. WeGotBeats

    WeGotBeats Music Producer/Game Developer Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    I've literally done all these things before writing this post. If it's not the default font it doesn't work for some reason.

    I even tried inputting a Windows font like Verdana with no success...all done with the CSS and plugins. Even on a fresh project it doesn't work.
     
    #6
  7. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,451
    Likes Received:
    928
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    Can you please show the CSS file from the fresh project as well as a screenshot of your project folder that has the font file?

    Can you please describe what you mean by "doesn't work" -- do you get an error or does the game simply run but still uses the default font instead of the font you wanted.
    If error, please open the Console and show the full error message from there.
     
    #7
  8. WeGotBeats

    WeGotBeats Music Producer/Game Developer Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    I figured out how to open F12 - Developer Tools - Console
    Here is what I found

    Error: Failed to load GameFont
    at Scene_Boot.isGameFontLoaded (rpg_scenes.js:198)
    at Scene_Boot.isReady (rpg_scenes.js:186)
    at Function.SceneManager.updateScene (rpg_managers.js:1823)
    at Function.SceneManager.updateMain (rpg_managers.js:1790)
    at Function.SceneManager.update (rpg_managers.js:1714)

    I also got Yanfly's plugin to work by simply downloading message core. Thats one problem solved. Now I need to figure out how to change the entire GameFont

    The code in the CSS file is this:

    Here is an image of the folder
    [​IMG]
    http://www.mediafire.com/view/w4hd1obfo0l48q3/GameFont_Folder.png/file

    When the code is changed to anything other than the default font, the game will say "Now Loading" for a minute. Then say "error Failed to load Gamefont"
     
    Last edited: Jun 20, 2019
    #8
  9. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,451
    Likes Received:
    928
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    CSS file and the font file name seems fine.

    Can you try another font known to work to see whether it's the font itself that has an issue?
    In the Developer Tools can you check the Network tab and look for the entry for the font (it's probably in red) and verify the file path it's trying to load vs. the file path where the font file actually is? You probably have to refresh the game with the Developer Tools open for it to show.
     
    #9
  10. WeGotBeats

    WeGotBeats Music Producer/Game Developer Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    Well, I tried Verdana and that didn't work and that was a font in some of the coding. I can get all the fonts to work using Yanfly's Message Core so I think the fonts themselves are okay.

    The only font coming up in red is Verdana. The rest of the fonts I want are already loaded and are acting fine besides that fact that I can't replace the Gamefont with them.

    I am going to keep looking on how to reload the game through developer tools and see what I get.

    Noticed something in the code in Console. This is what it says:

    Failed to decode downloaded font: chrome-extension://odlameecjipmbmbejkplpemijjgpljce/fonts/statusplz.ttf
    index.html:1

    Could this help?

    I appreciate all your help. Thank you
     
    #10
  11. Trihan

    Trihan Speedy Scripter Veteran

    Messages:
    1,483
    Likes Received:
    972
    Location:
    Buckie, Scotland
    First Language:
    English
    What location on your hard drive is your game project saved in?
     
    #11
  12. WeGotBeats

    WeGotBeats Music Producer/Game Developer Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    Documents/Games

    *UPDATE*

    I finally figured out how to change the font for the entire game.

    Open RPG_Windows.js in JS folder

    The code you need to change is this:

    Window_Base.prototype.standardFontFace = function() {
    if ($gameSystem.isChinese()) {
    return 'SimHei, Heiti TC, sans-serif';
    } else if ($gameSystem.isKorean()) {
    return 'Dotum, AppleGothic, sans-serif';
    } else {
    return 'GameFont';
    }
    };

    Simply replace 'GameFont' with your font of choice. Use font family name and not .ttf file name. In my case I change it to 'Apple Kid' and it worked perfectly.
     
    Last edited: Jun 26, 2019
    #12

Share This Page