XCOM 2
Not enough ratings
Ubuntu Font for Photobooth/UI [WOTC]
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
451.950 KB
10 May, 2022 @ 11:50am
10 May, 2022 @ 1:14pm
2 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Ubuntu Font for Photobooth/UI [WOTC]

Description
This mod adds the Ubuntu Font (Regular and Bold) for XCOM 2 Photobooth and (optionally) UI.

FAQ

Original FAQ by Eric Kotato (with some changes)

Do I need any mods for this?
Yes. This mod uses FontLib, so it needs any mod that fixes default game fonts. Such mods can be found here:
https://steamhost.cn/steamcommunity_com/workshop/filedetails/?id=2625358129

Please read and install any mod from the collection above, otherwise white boxes will be shown instead of letters/characters!

Where can I find the mod folder?
[Steam library folder or Steam folder]\steamapps\workshop\content\268500\2806480471. Please note that XCOM 2 and Workshop content are located in same library folder, so the easiest way is to open XCOM 2 folder (right-click the game in Steam > Properties... > Local files > Browse...), navigate two folders up (until steamapps) and after that navigate to workshop\content\268500\2806480471.

If you are using the Alternative Mod Launcher (AML), you can also use "Show in Explorer" option after right-clicking the mod on the list.

Can I have full font values list for this mod?
Ubuntu,Normal
Ubuntu Bold,Normal

Can I use this font for game UI?
Yes. For this to work, you need to add [Fonts] section in any GFxUI.int file (other languages can use different file extension insted of .int, e.g. Russian language will use .rus):

[Fonts] NormalFont=Alpha,Normal TitleFont=AF Carplates Medium,Normal ProtoFont=Lucida Console,Normal PhotoboothFontGomorrah=Gomorrah,Normal PhotoboothFontPosterama1913=Posterama 1913 SemiBold,Normal PhotoboothFontPosterama1984=Posterama 1984,Bold PhotoboothFontPosteramaText=Posterama Text,Bold PhotoboothFontTomsHandwritten=Toms Handwritten,Normal

After that, you'll need to replace NormalFont and TitleFont like this:
NormalFont=Ubuntu,Normal TitleFont=Ubuntu Bold,Normal

You can also mix and match various fonts you want.

NOTE: This will disable those default fonts for use in posters. However, you can bring them back to photobooth by using the tweak below.

I've replaced the default main UI font, but still want to use it in posters!
You can add default fonts separately in [mod folder]\Config\XComContent.ini file:

+m_arrFontOptions=(FontDisplayName="Alpha (Restored)", \\ FontName="Alpha,Normal", \\ AllowedInAsianLanguages=true, \\ AllowedInCyrillic=true, \\ AllowedForCaptured=true) +m_arrFontOptions=( \\ FontDisplayName="Carplates (Restored)", \\ FontName="AF Carplates Medium,Normal", \\ AllowedInAsianLanguages=false, \\ AllowedInCyrillic=true, \\ AllowedForCaptured=false)

Please note that it doesn't disable duplicates since it will break localization.

I don't like the font. How to disable it?
If you don't like the font and you don't want to see it in game again, you can simply disable the mod itself. If you're using the font as main UI font and don't want to see it in photobooth, you can disable it in [mod folder]\Config\XComContent.ini file by just commenting it out, putting ";" (semicolon) in front of the lines related to font. For example, if in following config:

[XComGame.X2Photobooth] +m_arrFontOptions=( \\ FontDisplayName="Ubuntu", \\ FontName="Ubuntu,Normal", \\ AllowedInAsianLanguages=false, \\ AllowedInCyrillic=true, \\ AllowedForCaptured=false) +m_arrFontOptions=( \\ FontDisplayName="Ubuntu Bold", \\ FontName="Ubuntu Bold,Normal", \\ AllowedInAsianLanguages=false, \\ AllowedInCyrillic=true, \\ AllowedForCaptured=false)

you want to disable the font, you'll have to put ";" (semicolons) on every line since the start of the parameter ("+" (plus) sign) and until the line with ")" (closing round bracket). The following example will disable the first font, leaving Ubuntu Bold as only enabled font:
[XComGame.X2Photobooth] ;+m_arrFontOptions=( \\ ; FontDisplayName="Ubuntu", \\ ; FontName="Ubuntu,Normal", \\ ; AllowedInAsianLanguages=false, \\ ; AllowedInCyrillic=true, \\ ; AllowedForCaptured=false) +m_arrFontOptions=( \\ FontDisplayName="Ubuntu Bold", \\ FontName="Ubuntu Bold,Normal", \\ AllowedInAsianLanguages=false, \\ AllowedInCyrillic=true, \\ AllowedForCaptured=false)
Can I enable it for Asian languages (Chinese, Japanese, Korean)?
It's not recommened since there is no support for this languages in font. But if you really want to, just change AllowedInAsianLanguages=false to AllowedInAsianLanguages=true for the fonts you want to be shown in [mod folder]\Config\XComContent.ini.

Why this font can be used for "Captured" posters?
By default you can use only Alpha font for these posters. If you want to use other fonts too, replace AllowedForCaptured=false tp AllowedForCaptured=true for the fonts you want to be shown.

Can I use it in XCOM 2 WotC Propaganda Center?
Yes. Copy the mod folder to [game folder]\XComGame\Mods and add the following line to [game folder]\XComGame\DefaultModOptions.ini under [Engine.XComModOptions] section:
ActiveMods="UbuntuFont"
This info was initially provided by ($S360)Aeronautic.

Special thanks to Eric Kotato for the font modding pipeline, as well as UI font guides and templates.