Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/critique-gaming/defold-resize-scripts

Script that rescales a font in all GUI files of a Defold project
https://github.com/critique-gaming/defold-resize-scripts

defold

Last synced: 11 days ago
JSON representation

Script that rescales a font in all GUI files of a Defold project

Awesome Lists containing this project

README

        

# Scripts for resizing GUIs in Defold

## Setup

Install Python 3. Then:

```
pip install deftree
```

## Resize fonts project-wide in Defold

```
python resize_font.py
```

This will look through all .gui files for text nodes with font `` and
scale them by ``.

**This doesn't support game object labels. Feel free to submit a PR**

## Resize GUI to a different design size

```
python resize_gui.py
```

This will look through all .gui files and scale all measurements (position, size, slice9)
by ``. Use this after you changed your project's design
resolution and after you re-exported all the assets at the new resolution.