Updated README. Fixed gitignore

This commit is contained in:
nedko 2026-01-19 16:00:16 +02:00
parent 3f4e42d7ce
commit 7c5cec7d8a
2 changed files with 12 additions and 1 deletions

9
.gitignore vendored
View File

@ -1,4 +1,13 @@
# Exclude the executable
trmnl_sdl trmnl_sdl
# Exclude configuration files
*.json *.json
# Exclude images
*.bmp
*.jpg
*.png *.png
# Exclude fonts
*.ttf *.ttf

View File

@ -70,7 +70,7 @@ Controls image resizing. **String** type. Has several options:
* stretch - Image is scaled (with possible stretching) to fully fill the box * stretch - Image is scaled (with possible stretching) to fully fill the box
### TextFit ### TextFit
Controls automatic change the text size depending on contents. **String** type. Has several options: Controls the automatic change of the text size depending on contents. **String** type. Has several options:
* none - Text is not changed in any way * none - Text is not changed in any way
* shrink - Renders text with desired size and shrinks it to fit if contents are too large * shrink - Renders text with desired size and shrinks it to fit if contents are too large
* auto - Renders text with desired size and enlarges/shrinks it to fit if contents are too small/large * auto - Renders text with desired size and enlarges/shrinks it to fit if contents are too small/large
@ -90,6 +90,8 @@ Renders an image with optional scaling
| halign | HAlign | | center | Horizontal alignment of the image | | halign | HAlign | | center | Horizontal alignment of the image |
| valign | VAlign | | center | Vertical alignment of the image | | valign | VAlign | | center | Vertical alignment of the image |
Supported image formats: **JPG**, **PNG**, **BMP**
### rect ### rect
Renders a rectangle with optional rounded corners using either fill or internal stroke. Renders a rectangle with optional rounded corners using either fill or internal stroke.
| Name | Type | Required | Default | Description | | Name | Type | Required | Default | Description |