MZ Font Issue With Moghunter's Battle HUD

Hello -- quick question. I am playing around with Moghunter's Battle HUD and the Visustella Battle Core. I was hoping someone could figure out what is causing the Actor's Name to not appear in my game's font, as seen in the below screenshot:

1609571594418.png


Link to Plugin: https://atelierrgss.wordpress.com/rmz-battle-hud/

I toggled the Battle HUD and Battle Core on and off to determine which plugin is causing the issue, and it seems that Battle HUD is the culprit (the name appears in the correct font when Battle Core is running alone, and in the incorrect font when Battle HUD is running either alone or with Battle Core). I also went through the Battle HUD plugin code and found the following sections that appear to reference font size, etc., but none that explicitly reference the font. I played around with disabling certain parts of them, but I couldn't figure out the cause of the issue.

Spoiler: Relevant Code
JavaScript:
    // NAME POSITION
    Moghunter.bhud_name_visible = String(Moghunter.parameters['Name Visible'] || true);
    Moghunter.bhud_name_font_size = Number(Moghunter.parameters['Name Font Size'] || 20);
    Moghunter.bhud_name_font_bold_size = Number(Moghunter.parameters['Name Bold Size'] || 4);
    Moghunter.bhud_name_font_italic = String(Moghunter.parameters['Name Font Italic'] || false);
    Moghunter.bhud_name_align  = Number(Moghunter.parameters['Name Align'] || 1);
    Moghunter.bhud_name_pos_x = Number(Moghunter.parameters['Name X-Axis'] || -25);
    Moghunter.bhud_name_pos_y = Number(Moghunter.parameters['Name Y-Axis'] || 65);   

...

//==============================
// * Create Name
//==============================
Battle_Hud.prototype.create_name = function() {
    if (String(Moghunter.bhud_name_visible) != "true") {return};
    this.removeChild(this._name);
    if (!this._battler) {return};   
    this._name = new Sprite(new Bitmap(200,48));
    this._name.x = this._pos_x + Moghunter.bhud_name_pos_x;
    this._name.y = this._pos_y + Moghunter.bhud_name_pos_y;
    this._name.bitmap.fontSize = Number(Moghunter.bhud_name_font_size);
    if (String(Moghunter.bhud_name_font_italic) === "true") {this._name.bitmap.fontItalic = true};

    this._name.bitmap.outlineWidth = Number(Moghunter.bhud_name_font_bold_size);
    this.addChild(this._name);   
    this.refresh_name();
};

//==============================
// * Refresh Name
//==============================
Battle_Hud.prototype.refresh_name = function() {
    this._name.bitmap.clear();
    var align = "left"
    if (Moghunter.bhud_name_align === 1) {
        var align = "center"
    } else if (Moghunter.bhud_name_align === 2) {
        var align = "right"
    };
    this._name.bitmap.drawText(this._battler._name, 0, 0, this._name.bitmap.width, this._name.bitmap.height,align);   
};

If anyone could point me in the right direction to fix this, it would be much appreciated! Thanks!
can you share me how you define the font for the game?
in the Database or inside VisuStella Plugin parameter?

since the Battle HUD code in above post did not modify any font except size and bold... but maybe there's some code that modify it in somewhere else beside the part you share... or in other plugin... you can try searching for
drawText function and resetFontSettings function in all your plugin and see does any of them contain word "fontFace"
hope this help.
can you share me how you define the font for the game?
in the Database or inside VisuStella Plugin parameter?

since the Battle HUD code in above post did not modify any font except size and bold... but maybe there's some code that modify it in somewhere else beside the part you share... or in other plugin... you can try searching for
drawText function and resetFontSettings function in all your plugin and see does any of them contain word "fontFace"
hope this help.

Thanks for taking the time to respond! I defined the font in the main game Database and then again in several parts of the VisuStella Core plugin parameters where it would otherwise override that choice. I don't think the VisuStella plugins are the issue because the font appears correctly as soon as I disable the BattleHUD and also appears incorrectly if I enable the BattleHUD with the VisuStella plugins disabled.

I am checking my plugins for the language you suggested now, and will update if I find something.

EDIT: I have not found anything changing the font in the Battle HUD plugin. To add a little more info, I also confirmed that the Battle HUD plugin seems to be the sole cause of the issue (somehow). The font appears correctly (1) with all plugins disabled; and (2) with all plugins except for Battle HUD enabled. It appears incorrectly as soon as Battle HUD is enabled (regardless of whether any other plugin is enabled). In any event, I cannot check the code of the VisuStella plugins because it is obscured. But I do not see anything relevant in the Battle Core plugin parameters.
Thanks for taking the time to respond! I defined the font in the main game Database and then again in several parts of the VisuStella Core plugin parameters where it would otherwise override that choice. I don't think the VisuStella plugins are the issue because the font appears correctly as soon as I disable the BattleHUD and also appears incorrectly if I enable the BattleHUD with the VisuStella plugins disabled.

I am checking my plugins for the language you suggested now, and will update if I find something.

EDIT: I have not found anything changing the font in the Battle HUD plugin. To add a little more info, I also confirmed that the Battle HUD plugin seems to be the sole cause of the issue (somehow). The font appears correctly (1) with all plugins disabled; and (2) with all plugins except for Battle HUD enabled. It appears incorrectly as soon as Battle HUD is enabled (regardless of whether any other plugin is enabled). In any event, I cannot check the code of the VisuStella plugins because it is obscured. But I do not see anything relevant in the Battle Core plugin parameters.
can you try making fresh project... then only install Battle HUD plugin... then set your font in the database... does the game use the font or not...

if NOT... then the culprit 100% is Battle HUD plugin...
you can then pack the fresh project (make it as small as possible) and upload that somewhere (dropbox / gdrive) and then share the link... maybe someone could check the project.

also make sure you set the font right in the database... check the font name and extension... this link might be helpful just in case...
Thanks estriole! After much wrangling I ended up ditching the Battle HUD and getting a HUD I am much happier with using SRDude's HUD Maker Ultra and some tweaks to rmmz_scenes.

So although I have not technically "solved" this mystery, this thread can now be closed. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/font-issue-with-moghunters-battle-hud.131719/