Fonts for Opera GX Mods

Instructions on including custom fonts for your Opera GX mod.

You can include custom fonts in your Opera GX mod by adding them to the fonts folder in your mod's directory. The fonts will be loaded from the fonts folder when the mod is applied.

Adding Fonts to Your Mod

To add custom fonts to your mod, follow these steps:

Font Format

  • Supported formats: .ttf and .otf.
  • Place your font files in a your-mod/fonts/ directory.

Update manifest.json

Define custom fonts in the manifest.json file:

manifest.json
{
  "fonts": [
    {
      "id": "0",
      "name": "Custom Font",
      "header": {
        "name": "Custom Font",
        "variants": [
          {
            "path": "fonts/CustomFont-Regular.ttf"
          }
        ]
      }
    }
  ]
}

In this example, the custom font file CustomFont-Regular.ttf is located in the fonts folder of the mod's directory.

Tips

  • Use fonts that are easy to read and complement your mod's design.
  • Avoid using too many different fonts in your mod to maintain a cohesive design.
  • Ensure that the font files are properly licensed for distribution with your mod.