Jump to content

Font for translation (for dev)


Recommended Posts

Game use Liberation Sans SDF for english (exept main menu) and RobotoCondensed-Regular for russian (this font is default for localization) and local variants Noto Sans for other.

Font name hardcoded, and fonts itself load via texture (TMP_FontAsset) files.

private static readonly List<Locale> Locales = new List<Locale>
{
	new Locale(Language.Chinese, Direction.LeftToRight, "zh", "NotoSansCJKsc-Regular"),
	new Locale(Language.Japanese, Direction.LeftToRight, "ja", "NotoSansCJKjp-Regular"),
	new Locale(Language.Korean, Direction.LeftToRight, "ko", "NotoSansCJKkr-Regular"),
	new Locale(Language.Russian, Direction.LeftToRight, "ru", "RobotoCondensed-Regular"),
	new Locale(Language.Thai, Direction.LeftToRight, "th", "NotoSansThai-Regular"),
	new Locale(Language.Arabic, Direction.RightToLeft, "ar", "NotoNaskhArabic-Regular"),
	new Locale(Language.Hebrew, Direction.RightToLeft, "he", "NotoSansHebrew-Regular"),
	new Locale(Language.Unspecified, Direction.LeftToRight, string.Empty, "RobotoCondensed-Regular")
};

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
×
  • Create New...