RMMV Change Font Size for different language using SRD (SRDude) Translation Engine

yiling

Villager
Member
Joined
Feb 10, 2018
Messages
15
Reaction score
1
First Language
chinese
Primarily Uses
RMMV
View attachment 189234
Hi everyone!
I have some issue using SRD's Translation Engine plugin (http://sumrndm.site/translation-engine/)
I used a larger font (42pt) for the entire game, and when it was for the other two languages (Chinese and Japanese), the font size works fine. When it was English, the lines always exceed the borders.
Would it be possible to modify the plugin, or somehow manipulate it, so that, whenever it is in English, the font size goes down to about 30?
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,007
Reaction score
1,522
First Language
Dutch
Primarily Uses
RMMV
not sure, but you can do a runup autorun on the start of the game?
and check if the language = english, change font to x, otherwise
if it's chinese,, change font to x.

I dont know if you can change font on the fly by scriptcall, but that is what
comes to mind if it does work.

but I think there is a way to check the language regardless.
 

yiling

Villager
Member
Joined
Feb 10, 2018
Messages
15
Reaction score
1
First Language
chinese
Primarily Uses
RMMV
Thank you ShadowDragon! You have helped me out so many times and I couldn't find a way to express my appreciation of your kind help. Your method sounds very promising, and I will give this a try!
not sure, but you can do a runup autorun on the start of the game?
and check if the language = english, change font to x, otherwise
if it's chinese,, change font to x.

I dont know if you can change font on the fly by scriptcall, but that is what
comes to mind if it does work.

but I think there is a way to check the language regardless.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,007
Reaction score
1,522
First Language
Dutch
Primarily Uses
RMMV
looking around, you can change the fontSize probably by using this:

JavaScript:
this.contents.fontSize = x ;

x is the size, default is 24 I think, but there is 1 slight problem if this works,
it would change the entire fonts (scene menu, scene title, scene item, scene equip,
battles etc).

if you want to do it in pure messages only, you probably need a plugin,
that target the message system, and maybe a variable if using choices.

so you can use a fix variable ID, and change size for the message accordenly.
I am not yet able to do this or what to look for the message window.

but if it require a plugin, hopefully someone is able to do so.
 

Latest Threads

Latest Posts

Latest Profile Posts

Phew! logged back. Seems I was too occupied with 3D learning (yeah for RPGM purposes) creating IRL space, trying to grow catnip, dealing with health and DC is good. (so MrC) ^^
Currently trying to add items in the same style as Kyrise's excellent icons. I like having a large variety of items :3 KyriseandMe.PNG
Create MiniMaps, Sprites for MV Enemies, & Aethereal Plane Battlebacks | RPG Maker News #74

Vtubers Vs MOTHER.png

This might be my next project. You like it?
I'm off to search the master script list for my skill issue. HOORAY! FUN!

Forum statistics

Threads
112,328
Messages
1,067,420
Members
145,967
Latest member
zakariadu78
Top