Ren'Py color and font size

vimmers

Engaged Member
Aug 12, 2017
3,886
3,362
is it possible to change color and font size
in games like i just started this
and i just think that the size are to small 1.jpg
and color doesn't fit in this image 2.jpg
i can see a folder there are named text with font and text
but i don't know what i shall look for
this is a general question to all games
 
  • Like
Reactions: Palanto

Palanto

Active Member
Game Developer
Oct 4, 2017
964
1,841
Depends, are there any .rpy files inside the /apartment-v0-3-1/game/ folder? Or are there only .rpa containers?
If you see a gui.rpy open it with a text editor and change these values:

# this is for the text size down in the textbox:
Code:
define gui.text_size = number
#this is for the text size in the choice menu buttons:
Code:
define gui.choice_text_size = number
# this is for the text color down in the textbox:
Code:
define gui.text_color = '#404040'
# number being the size you want them to be
# look for text_color =
# because the #404040 won't be the color he uses :D

If those lines aren't anywhere inside the gui.rpy then you can just create them wherever inside the file.

But if there are only .rpa file containers you'll have to search for unren.bat in this forum and read up on how to use it to extract the .rpy files (or .rpyc files which then need an additional step to be decrypted to .rpy files)
 
  • Like
Reactions: The_Boi and vimmers

vimmers

Engaged Member
Aug 12, 2017
3,886
3,362
in the /apartment-v0-3-1/game/ folder? are only rpa file named archive.rpa
so what are the renpy folder for
i see a lot of py and pyo files
like font.py and font.pyo + text.py and text.pyo
trought that i could edit some of those
 
  • Like
Reactions: Palanto

Palanto

Active Member
Game Developer
Oct 4, 2017
964
1,841
Those are ren'py engine files. So it would be better to leave them alone if you don't know what you're doing :D Like I said, look for the unren.bat in the forum ( ) , it's a nice little tool that extracts those archive.rpa files and can decrypt .rpyc files to .rpy files :) If you did that you can easily follow the steps above again :)
There are other ways to do it though, I could create a file for you that you'd just have to place inside the /game/ folder and edit the mentioned numbers to your preferred size...
I added the file to this post... you could even change the fonts if you wanted to... well the file is just a copy of our own gui.rpy or better said of that specific parts of it. everything with a "#" <--- infront of it is a comment, I commented out the fonts so that they don't get changed, if you'd want to change them to a font you have as a .ttf file just place the font into the /game/ folder and delete the # infront of the specific font you want to change, then place the name of the .ttf file behind the "=" sign looking like this then:

Code:
## The font used for in-game text.
    #gui.text_font = "fontFile.ttf"
to
Code:
## The font used for in-game text.
    gui.text_font = "MyCoolFontFile.ttf"

p.S.: Once setup this file can be used in any ren'py game.