1
0
mirror of https://github.com/mt-mods/signs_lib.git synced 2024-11-17 23:18:13 +01:00
signs_lib/util
Niklp 1fdff47dc8
Fix out-of-bounds in 'combine' texture modifier
Co-authored-by: tenplus1 <tenplus1@users.noreply.github.com>
2024-02-26 16:15:32 +01:00
..
blender Fix warnings (mt 5.8+) due to disallowed filenames (#23) 2023-10-15 12:34:26 -04:00
convert.sh Fix out-of-bounds in 'combine' texture modifier 2024-02-26 16:15:32 +01:00
create-signs-lib-overlay.sh add texture generation scripts from https://github.com/zeuner/signs-font-generate 2020-12-07 13:38:31 +01:00
LICENSE add texture generation scripts from https://github.com/zeuner/signs-font-generate 2020-12-07 13:38:31 +01:00
nonascii-de add texture generation scripts from https://github.com/zeuner/signs-font-generate 2020-12-07 13:38:31 +01:00
nonascii-fr add texture generation scripts from https://github.com/zeuner/signs-font-generate 2020-12-07 13:38:31 +01:00
nonascii-pl add texture generation scripts from https://github.com/zeuner/signs-font-generate 2020-12-07 13:38:31 +01:00
README.md add texture generation scripts from https://github.com/zeuner/signs-font-generate 2020-12-07 13:38:31 +01:00
unicode-numbers.sh add texture generation scripts from https://github.com/zeuner/signs-font-generate 2020-12-07 13:38:31 +01:00
write-ascii.sh Full Unicode Plane 0 charset support (63000+ chars, only ~2MB) (#2) 2021-12-08 21:01:30 +11:00
write-nonascii.sh Full Unicode Plane 0 charset support (63000+ chars, only ~2MB) (#2) 2021-12-08 21:01:30 +11:00

signs-font-generate

This is a collection of helper shell scripts to create textures for international characters to be used with the signs_lib Minetest mod.

They currently expect the Liberation Fonts to be installed at "/usr/share/fonts/truetype/liberation".

ImageMagick is also required.

Basic usage

sh create-signs-lib-overlay.sh <signs_lib_directory>

For example, this command will write textures for the non-ASCII characters of the French language to "/home/user/signs_lib":

sh create-signs-lib-overlay.sh /home/user/signs_lib fr

Currently, there is support for German (de), French (fr) and Polish (pl) non-ASCII characters.

Character alignment

I chose the image processing parameters in order fairly match the alignment of the existing signs_lib textures. In order to get even better alignment at the expense of slightly smaller textures, it is possible to also replace existing ASCII character textures:

sh write-ascii.sh <signs_lib_texture_directory>

For example, with signs_lib residing at "/home/user/signs_lib":

sh write-ascii.sh /home/user/signs_lib/textures