ODW - Custom Font Message Plugin [Removed]


Custom Font Message Plugin v1.2.0
by Open Digital World

ODW_CustomFontMessage_0.gif

​

Introduction
This plugin allows you to use custom fonts to your game and use them to change the appearance of text in messages displayed.

Important: This plugin is an add-on of the plugin "Gabe MZ - Custom Font Loader" which you can get here: GabeMZ_CustomFontLoader.js.

Features
  • Use custom fonts in messages, choices and scrolling texts.
  • Adjust the text size, the text color, or the size and color of the text outline.
  • Change all these text parameters in one command, or combine them at will.

Spoiler: How to Use
1. Put your custom fonts in the /fonts folder of the game project.

2. Configure the plugin "Gabe MZ - Custom Font Loader".

3. Use the following plugin commands in your game before calling the commands "Show Text", "Show Choices" or "Scroll Text" in an event:
  • <Reset Custom Font>: Restore the default font settings.
  • <Use Custom Font>: Replace the default font settings with your own.
    • <Font Name>: the name you used to declare the font.
    • <Font Size>: the size of the text.
    • <Font Color>: the color of the text.
    • <Font Outline Color>: the color of the text outline.
    • <Font Outline Width>: the width of the text outline.
  • <Use Custom Font Name>: Replace the default font by one of your custom fonts.
    • <Font Name>: the name you used to declare the font.
    • <Reset Before Change>: the command to reset the custom font settings before applying this change.
  • <Use Custom Font Size>: Replace the default font size.
    • <Font Size>: the size of the text.
    • <Reset Before Change>: the command to reset the custom font settings before applying this change.
  • <Use Custom Font Color>: Replace the default font color.
    • <Font Color>: the color of the text.
    • <Reset Before Change>: the command to reset the custom font settings before applying this change.
  • <Use Custom Font Outline>: Replace the default font outline color and size.
    • <Font Outline Color>: the color of the text outline.
    • <Font Outline Width>: the width of the text outline.
    • <Reset Before Change>: the command to reset the custom font settings before applying this change.

Spoiler: Screenshots
ODW_CustomFontMessage_1.png
ODW_CustomFontMessage_2.png
ODW_CustomFontMessage_3.png
ODW_CustomFontMessage_4.png
ODW_CustomFontMessage_5.png
ODW_CustomFontMessage_6.gif

Terms of Use
This plugin is published under License MIT.

Special Thanks
Thanks to @Gabe for making his plugin available to developers to allow the creation of addons.


Download Link
ODW_CustomFontMessage.js (itch.io)
​

Update Log
Spoiler
v1.0.0 - 23.09.2021
- Initial release.
v1.1.0 - 26.09.2021
- Added support for choices and scroll text.
v1.2.0 - 05.10.2021
- Added support for text color and outline.
- Added new plugin commands to specifically change the font, size, color or outline of text.
Update v1.1.0 - 26.09.2021

Added support for choices and scrolling text, for more consistency in message display.

Spoiler: Screenshots
Choices before update:
ODW_CustomFontMessage_5a.png

Choices after update:
ODW_CustomFontMessage_5b.png

Scroll text:
ODW_CustomFontMessage_6.png

Happy RPG making! :ehappy:
Update v1.2.0 - 05.10.2021

This new version has some great improvements that will make life easier for game makers (I hope so anyway). :ewink:

Added support for text color and outline

Now you can also change the color of the text, as well as the size and color of its outline. Useful if you want to highlight certain discussions between actors... or adapt the outline for small texts.

Spoiler: Screenshots
ODW_CustomFontMessage_4.png

Default outline:
OutlineBefore.png

Adjusted outline with this plugin:
OutlineAfter.png

Added new plugin commands to specifically change the font, size, color or outline of text.

Now, with these new commands, you can change only one of the parameters at a time, or combine them as you wish.

Spoiler: Screenshots
PluginCommands.png

Note about customizing text size and color

The use of the plugins' commands will change the entire text of the following message windows. However, it is still possible to change the size or color of a part of the text by using the usual escape codes.

Spoiler: Screenshots
ChangeInText0.png

ChangeInText1.png
Loving it, but I noticed the thicker outline changes I made didn't appear in the actual damage numbers in combat. Which is there I wanted it the most tbh. Any idea why?

Spoiler: Example
efsdf.PNG

I only use a different font for the things circled in red. The damage numbers should go under system 2 --> Number Font right? I used that one in Gabes plugin.
Hello @Willibab

First of all, thanks for using the plugin. Regarding your problem, it's normal that it doesn't work, because this plugin has been developed specifically to modify the font and text characteristics (size, outline, ...) for "walls of text", i.e. texts displayed by the "Show Text", "Show Choices" and "Show Scrolling Text" commands. Thus, the text and numbers displayed in the battle status window and in the damage popup are not affected by this plugin.

Concerning Gabe's plugin, it only loads the fonts in the system, but they are not usable as they are. It is through my plugin that these fonts are really "active" when the text is displayed.

About the display of damage numbers, the magic is in the file rmmz_sprites.js, more precisely in the method below. And you are right on one point, it is indeed the "System 2 => Number font" that is used to display these values.

Code:
Sprite_Damage.prototype.createBitmap = function(width, height) {
    const bitmap = new Bitmap(width, height);
    bitmap.fontFace = this.fontFace();
    bitmap.fontSize = this.fontSize();
    bitmap.textColor = this.damageColor();
    bitmap.outlineColor = this.outlineColor();
    bitmap.outlineWidth = this.outlineWidth();
    return bitmap;
};

So, if you only want to change the outline of these damage popups, you need to add the following code in a dedicated plugin for your project.

Code:
const MyPlugin_Sprite_Damage_createBitmap = Sprite_Damage.prototype.createBitmap;
Sprite_Damage.prototype.createBitmap = function(width, height) {
    const bitmap = MyPlugin_Sprite_Damage_createBitmap.call(this, width, height);
    bitmap.outlineWidth = 10; // or whatever value you want, here it's just for the test
    return bitmap;
};

Spoiler: Result
Before (by default)
1652214353774.jpeg


After (with plugin and outline of 10)
1652214389692.jpeg

But if you want to have a more complete plugin to manage your fonts, you can use the one from @Eliaquim which allows, if I'm not mistaken, to make the desired modification without the need to code.

In any case, I hope I could help you, or at least answer your question.
Thanks! It worked!
sdfsd.PNG

Looks so much better imo! Especially if the background is fairy bright.

I did consider Eli's version but I am currently over budget for plugins for awhile xD
Looks so much better imo! Especially if the background is fairy bright.
The "contrast" is really better, indeed. Glad I could help you. 😂
Hello. I'm new to RPGMMZ, and plugins in general...so I'm sorry if this is a total noob question..

I installed both plugins as instructed in the itch page, and went into "parameters" of Gabe's plug in and set up my "Fonts" value.

When I try to use your plugin command (any of them, it seems) I get the error "Cannot read property 'length' of Undefined"

What might I be doing wrong?

I figured maybe your plugin might be able to help me with the current project issue I was having?
Hello @AubbyDobby

First of all, thanks for using the plugin. About the error you are experiencing, the only place where the "length" property is used in my plugin code is when I list the fonts registered by the Gabe plugin... and thus is the focal point for all the plugin commands, which would explain why none of them work.

Is Gabe's plugin installed before mine in the plugin list? Are the fonts registered correctly? A screenshot of the debug console (press F8 when the game starts) would also help me understand.

Regarding the outcome of your project stated in the other thread, I'm sorry but I don't think my plugin can fix it. Indeed, this plugin doesn't change the way the core scripts work, but just allows to use another font than the default one (see system 2 tab) to use in the box messages.
Hi everyone!

Due to a reorganization of my plugin roadmap, this plugin is no longer supported. Please consider this plugin instead, much more complete and efficient.

Eli Font Manager by Hakuen Studio

And thanks again to those who once downloaded my plugin, that was appreciated. 😤
Moderator note: Closing at OP's request

Original thread: https://forums.rpgmakerweb.com/threads/odw-custom-font-message-plugin-removed.140729/