Sign in to follow this  

How can you the in-game font? (Language Pack)

Recommended Posts

FreyaMaluk    5859

I've published my translation already, but some letters and symbols in my language are not detected or the names are longer than in English which makes them look pretty weird in-game.

Is there a way to change for a font including the special characters and also changing the font size???

Share this post

Link to post
Share on other sites
CarlZalph    5026

I'm not sure if the .po file system allows for setting of the font or size, but the talker component of the player can be edited:

ThePlayer.components.talker.fontsize = #

ThePlayer.components.talker.font = UIFONT


Definitions of fonts to use, though not sure if you can freely add more, may be found in scripts/fonts.lua:2-19::





Do we support non-ASCII fonts?
At the moment, we do not support non-ASCII fonts. 

This is from 2013, so not sure if this is up to date or not.

But it might explain why some of your letters are not supported.



Something to try is to instead of using the symbols directly, try escaping them.

Like for the special n with a tilde over it: "\195\177"... Or is it "\177\195"?

Edit: Yeah, it's "\195\177"


Edited by CarlZalph

Share this post

Link to post
Share on other sites
Muche    295

I'm not sure which translation you are referring to specifically, but I downloaded one from (Shipwrecked en Español v.

The file es.po says it's encoded in iso-8859-1. I have no idea if the game handles different codepages correctly. Could you try to change the file's encoding to utf-8 to see whether it fixes the missing characters?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this