我正在使用Javascript为我的游戏编写插件,如何更改文本的高度?
我正在使用Javascript为我的小型游戏编写插件,但遇到了更改文字高度的问题。更改字体大小后,它看起来不太好,因为距顶部的距离很长。我认为这是“身高”问题,但我不知道该使用哪个变量。
//===JS
Window_YMP.prototype = Object.create(Window_Base.prototype);
...
Window_YMP.prototype.refresh = function () {
this.contents.fontSize=15;
this.drawText('I have no idea what to say.', 0, 0, this.Width);
}
//===
I want to decrease the distance between the first red line and first yellow line