Font in all uppercase

Joined
Jan 5, 2015
Messages
221
Reaction score
81
I found the perfect font, but I only want to use uppercase letters for a classic feel. Is it possible to transform all the default text into uppercase letters? Crossing my fingers it's possible, or else I might have to edit the font file itself :(
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
I found the perfect font, but I only want to use uppercase letters for a classic feel. Is it possible to transform all the default text into uppercase letters? Crossing my fingers it's possible, or else I might have to edit the font file itself :(
[SIZE=12.222222328186px]"transform all the default text into uppercase letters"[/SIZE]

Please define what do you mean by default text.

If you mean Start Game, Hero name and stuff like menu items in general, like Item,Save,Status,Equip... all these or most can change to UPPERCASE yes.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
All the default text is either in the database or in the Vocab script.


Note - if you ever see %s used, leave it lower case. You will break things by changing that.
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,545
Reaction score
3,715
First Language
Java's Crypt
Primarily Uses
RMMZ
This apparently work:

class Window_Base < Window  def draw_text(*args)  args.each_index do |idx|  if args[idx].is_a? String  args[idx] = args[idx].upcase  end  end    contents.draw_text(*args)  end   alias capitalize_draw_text_ex draw_text_ex  def draw_text_ex(x, y, text)  capitalize_draw_text_ex(x, y, text.upcase)  end  end 

All the default text is either in the database or in the Vocab script.

Note - if you ever see %s used, leave it lower case. You will break things by changing that.

 
I don't know if the above code will break this or not.

@mewochelle, if you decide to use the code I posted, be sure to test those situations.
 
Last edited by a moderator:

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
I don't know if the above code will break this or not.
You can add a string manipulation that when it finds a % inside a string it will not convert it, otherwise it will. ;)

I must learn Ruby fast, or I will not be of any help for long in this forum.

Everything can be solved using scripts!
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,545
Reaction score
3,715
First Language
Java's Crypt
Primarily Uses
RMMZ
You can add a string manipulation that when it finds a % inside a string it will not convert it, otherwise it will. ;)
True.

I'm going to sleep now, but if OP decides to go the script way, I can add that in the morning.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I don't know if the above code will break this or not.
It should not, because the substitutions happen before the call to those methods. IE - by the time it gets to those methods, there should no longer be any %s occurrences in the string.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
First Language
Indonesian
Primarily Uses
RMVXA
Some scripts might use sprite instead of window to draw text. So, imo it's better to modify the draw_text inside the bitmap class instead

Code:
class Bitmap  alias upcase_draw_text draw_text  def draw_text(*args)   args.each_index do |idx|     if args[idx].is_a? String       args[idx] = args[idx].upcase     end   end    upcase_draw_text(*args)  endend
 
Last edited by a moderator:
Joined
Jan 5, 2015
Messages
221
Reaction score
81
@Shaz Haha, I realized after posting this, that that was an option. 

@Hudell This works. 

@TheoAllen  This works as well.

Thank you everyone for your help!  :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,016,998
Members
137,562
Latest member
tamedeathman
Top