MV First pixels of the letter cut off

Hello! If no portrait is set, first pixels of text on the left is cut off in message boxes:
Screenshot_1.png

I found this code in YEP_MessageCore.js
JavaScript:
Window_Message.prototype.newLineX = function() {
    if ($gameMessage.faceName() === '') {
      return 0;
    } else {
      return eval(Yanfly.Param.MSGFaceIndent);
    }
};

Changing 0 to 2 here seems to solve the problem:
Screenshot_2.png

But is there any way to fix it without modifying someone's plugins?
I ran into this same problem with Message Core and ended up just putting an extra space in front of every text line in the message window lol 😅 Kind of a band-aid fix but it worked out pretty okay for me! You can also get rid of the font outline by adjusting its width in the plugin parameters. I like the solution you found, seems like it works good!
@PixelatedBree I thought of putting space every time line starts with capital letter, but it's such a pain in the ass 😀
Lowering outline thickness may be not okay too, as it greatly affects text visuals.
I tried making plugin to move text in every line of message X pixels to the right, but my JS skills are close to zero, so no chance.
if changing the line you show to 2, why not simply do that if it solves your issue?

if there are bugs/issues, people going to modify plugins anyway or extend it
for better compibility if they need it.

if it works and with the face as well, noone would see the difference.
I managed to write plugin that sets offset for text in message window. Works with and without YEP_MessageCore. Probably my code is bad and messy, but it works.
JavaScript:
/*:
 * @plugindesc Text offset in message window
 * @author eventide017
 *
 * @help This plugin moves text in message window x pixels to the right.
 * It helps fixing issue where part of letters are cut off. 2 pixels should
 * be enough, but you can change it in 'Offset' parameter.
 *
 * Works with and without YEP_MessageCore,
 * should load after Message Core if you use it.
 *
 * @param Offset
 * @desc Text offset in pixels. Default: 2
 * @type number
 * @min 0
 * @default 2
*/

offsetX = Number(PluginManager.parameters('TextOffset')['Offset']);

if (Imported.YEP_MessageCore) {
    portraitX = String(PluginManager.parameters('YEP_MessageCore')['Face Indent']);
    Window_Message.prototype.newLineX = function() {
        if ($gameMessage.faceName() === '') {
            return offsetX;
        } else {
            return eval(portraitX);
        }
    };
} else {
    Window_Message.prototype.newLineX = function() {
        return $gameMessage.faceName() === '' ? offsetX : 168;
    };
};
Nice! Glad you found a way to fix it!
It still would be nice if someone experienced in plugin-making checked my code for potential mistakes.

Original thread: https://forums.rpgmakerweb.com/threads/first-pixels-of-the-letter-cut-off.152588/