Choose a font for a specific plugin

Hi!


So I would like to ask if it is possible to add a specific line to an existing plugin, that determines which font I want to use for it.


something like "choose.font = "sans-serif"....I don't know what it woild be like because I'm not a programmer my self^^


Or to make an easy plugin where you write down the plugin names that should get a specific font.


Like:


verdana = YEP_EquipCore, YEP_ItemCore


sans-serif = YEP_StatusMenuCore, YEP_ClassChangeCore


etc.


so kinda like a list with the fonts they are in the fonts folder and then manualy add the plugin name that should geht the font.
first, plugins cannot use fonts - the code is never displayed.


What you're probably talking about is using different fonts on the displayed output of different plugins.


Yes, that is possible - but you need to change the output code inside each plugin on each position, which requires you to know at least enough of programming to find the output lines and change the output font there (which usually needs to be done in each of several output codes of each plugin.


So no, it isn't as easy as you imagine it in your example.
Using instanceof you could just alias Window_Base.prototype.standardFontFace and return a different value depending on the class of the instance or even you could just check the scene being run. Thereby using only one function. Would be good to use some helper function though.


I'll do this one later
first, plugins cannot use fonts - the code is never displayed.


What you're probably talking about is using different fonts on the displayed output of different plugins.


Yes, that is possible - but you need to change the output code inside each plugin on each position, which requires you to know at least enough of programming to find the output lines and change the output font there (which usually needs to be done in each of several output codes of each plugin.


So no, it isn't as easy as you imagine it in your example.



oh....well....I guess people like me imagine thinks quite easy xD

Using instanceof you could just alias Window_Base.prototype.standardFontFace and return a different value depending on the class of the instance or even you could just check the scene being run. Thereby using only one function. Would be good to use some helper function though.


I'll do this one later



I....guess I can't follow you right now 🙁


But I guess it is to diffeculty then for my purpose because right now I want a different font on moghunters time hud for now.


I ask not for just one plugin because everyone should get the chance to customize there game with one handy plugin instead of modify one^^

Original thread: https://forums.rpgmakerweb.com/threads/choose-a-font-for-a-specific-plugin.64948/