Change font & language setting

A guide on how to change the font and font size for Cyber Engine Tweaks and mods based on Cyber Engine Tweaks. And how to display non-English characters.

Use a text editor to open the config file at /config.json to adjust the settings.

In this page, we use this example JSON snippet to guide you through adjusting the settings:

{
    // other lines
    "font": {
        "base_size": 16.0,
        "language": "Default",
        "oversample_horizontal": 3,
        "oversample_vertical": 1,
        "path": ""
    },
    // other lines
}

Change font

Locate this line under the "font" curly brace:

"path": ""

Add the path of the font you want to change to between the double-quotes. For example, if you want to change the font to Comic Sans, just change this line into:

"path": "C:/Windows/Fonts/comic.ttf"

Note: You should use slash (/) instead of backslash (\) for the path.

How to display non-English characters

Some mods may have implemented multilingual support. But the non-English characters will display as a question mark "?". This is because the default font only contains ASCII printable characters.

To display a language that only uses ASCII characters (such as French, German), all you need to do is to change the font to one with a wider range (Literally any font).

To display a language that uses non-ASCII characters (such as Chinese, Russian), besides changing the font, you also need to change this line in the config file under the "font" curly brace:

"language": "",

Here is a table of the "language" options and their descriptions.

optionsDescriptions

Cyrillic

Supports languages that use Cyrillic scripts (e.g. Russian, Bulgarian..)

ChineseFull

Supports traditional Chinese, simplified Chinese, and Japanese display

ChineseSimplifiedCommon

Only supports simplified Chinese display

Japanese

Only supports Japanese display

Korean

For Korean

Thai

For Thai

Vietnamese

For Vietnamese

For example, to display Chinese all you need to do is:

{
    // other lines
    "font": {
        "base_size": 16.0,
        "language": "ChineseFull",
        "oversample_horizontal": 3,
        "oversample_vertical": 1,
        "path": "C:/Windows/Fonts/simhei.ttf"
    },
    // other lines
}

The result (using the Sim Hei / éģ‘äŊ“ font):

Last updated