sky-music / sky-python-music-sheet-maker

Make visual music sheets for thatskygame (graphical representations of the Sky keyboard)
MIT License
29 stars 10 forks source link

Support for Cyrillic and Polish characters #289

Open jmmelko opened 4 months ago

jmmelko commented 4 months ago

Polish characters are not supported by the PNG renderer because the NotoSansCJK font was chosen for Western and Asian characters.

Most likely Cyrillic characters are not supported either.

This could be fixed by:

jmmelko commented 4 months ago

Ok, I think this is fixed, excepted that diacritical marks are shifted rights with respect to base characters when rendered with PIL. It seems that the fix is to use a library called raqm, but this requires a special installation step, and under windows to download an unofficial DLL and put in the same files as Python.exe:

https://github.com/python-pillow/Pillow/issues/6258

this looks a bit overkill for supporting very rarely used languages.