From 442c16f93a3d998c8682b2015b007f0d3a4c62c8 Mon Sep 17 00:00:00 2001 From: tdixon Date: Sat, 5 Aug 2017 23:14:00 -0300 Subject: [PATCH] Make maptext sprites smaller in non-western langs --- scripts/Sprite_MapText.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/Sprite_MapText.rb b/scripts/Sprite_MapText.rb index e60c550..ad3b713 100644 --- a/scripts/Sprite_MapText.rb +++ b/scripts/Sprite_MapText.rb @@ -7,9 +7,14 @@ class Sprite_MapText < Sprite @real_x = x * 4 * 32 @real_y = y * 4 * 32 - self.zoom_x = 2 - self.zoom_y = 2 self.bitmap = Bitmap.new(200, 24) + if (Language::FONT_WESTERN == Font.default_name) + self.zoom_x = 2 + self.zoom_y = 2 + else + self.zoom_x = 1.5 + self.zoom_y = 1.5 + end #calculate text width spacewidth = self.bitmap.text_size(' ').width