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,011
Reaction score
1,523
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,011
Reaction score
1,523
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

Man, this quick One Map game is causing unprecedented amounts of trouble.
I always end up having issues with things i'd never expect.

Capture.PNG

Those friggin mountains man xD
Time for my daily walk/jog ''Literally starts raining while I open the door''
I just discovered there's a giant jellyfish in the Ace RTP. My day is made.

Forum statistics

Threads
112,401
Messages
1,068,058
Members
146,053
Latest member
komradiv
Top