Just gonna drop my feedback on the code. Feel free to take it or leave it.
What you mentioned is only relevant in MZ, the OP is writing code in MV.
@Cryranos Your code is actually mostly correct, you just mistyped the name of your own variables.
You declared your parameters as
Kryrzanos.Parameters
, but then later tried to access them as
Kryrzanos.Param
. If you just fix that, it should work.
A quick way to find these sorts of problems is open up the dev console and checking whether variables have the values you expect them to have. I found the above issue by typing
Kryrzanos.Param.Fontsize
in the console and seeing that it was undefined.
You can also clean the code up a bit, you don't really need to set the font size on both Bitmap and Window_Base, the Window_Base
resetFontSettings
function already changes its internal bitmap font size to
standardFontSize
. Cleaning things up a bit:
Code:
var Imported = Imported || {};
Imported.KRY_Fontsize = true;
var Kryrzanos = Kryrzanos || {};
Kryrzanos.Fontsize = {};
Kryrzanos.Parameters = PluginManager.parameters('KRY_Fontsize');
Kryrzanos.Parameters.Fontsize = Number(Kryrzanos.Parameters['Font Size']) || 28;
Window_Base.prototype.standardFontSize = function() {
return Kryrzanos.Parameters.Fontsize;
};