设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
搜索附件  
同能RPG制作大师 › 附件中心 › 同能RM技术讨论区 › RPG Maker MZ 讨论区 › Change Title Font Plugin: TitleFont.js

Change Title Font Plugin: TitleFont.js

 

Change Title Font Plugin:
This has been an issue for me since the start of creating my game and I just couldn't find where to change the font in the code of the game to make it work. SO I took it upon myself to create a plugin that manages the font of the title.

A few steps to make it work:
1. Have your downloaded font in the /fonts file of your game and have it saved as .ttf file
2. Download the plugin and put it in /plugins
3. Open the file of the plugin and change the:

const TITLE_FONT = "YOUR_FONT_NAME"; to the name of your desired font

And here as well but with the .ttf
FontManager.load(TITLE_FONT, "YOUR_FONT_NAME.ttf");

You can easily change the position of the font by editing this line:

bitmap.height / 2 - TITLE_SIZE / 2 - 40,

-40 will move it up and, deleting it will put it in the center, +40 will push it down and so on and on.
I think any other changes (such as size and color) are pretty much logical.

4. Open your game, turn on the plugin and have fun with title fonts!

If you have any advices or you actually know something to make it better or easier I'm more than happy to listen since I'm just a beginner :3


本贴来自国际rpgmaker官方论坛作者:Stjepan处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/change-title-font-plugin.181989/
简体中文
繁體中文
English(英语)
日本語(日语)
Deutsch(德语)
Русский язык(俄语)
بالعربية(阿拉伯语)
Türkçe(土耳其语)
Português(葡萄牙语)
ภาษาไทย(泰国语)
한어(朝鲜语/韩语)
Français(法语)
关闭

幸运抽奖

社区每日抽奖来袭,快来试试你是欧皇还是非酋~

立即查看

Loading...

QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

GMT+8, 2026-10-6 00:52 , Processed in 0.098187 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

返回顶部