#Music video credits with Japanese text fails in Docker but not Windows

1 messages · Page 1 of 1 (latest)

jagged onyx
#

Recently migrated from an ErsatzTV install on Windows v0.8.2-beta-win-x64 to a Docker container running inside Unraid 0.8.2-beta-docker-nvidia, everything appears to be working fine except that all the Japanese music videos I had set up no longer have proper credits. Comparison of how credits displayed in Windows versus Docker is attached (the blue image with Japanese text is Windows). ErsatzTV does recognize the Japanese text properly when viewing the library containing all the music videos, and Japanese text does display properly if I switch fonts (experimenting with Noto Sans KR seems to work).

I think the issue is that the font I'm using here, Outfit, doesn't have CJK characters in it; in Windows there is apparently some kind of fallback that allows Japanese characters to display anyways, but in the Docker container I guess there isn't. Since there's no single font that contains all Unicode glyphs due to size limitations (https://fonts.google.com/noto/use#faq) trying to use only one font may eventually run into issues, ex. Noto Sans KR doesn't support some Latin diacritics or Cyrillic. I'm not sure if there's a way to specify one or more fallback fonts for this purpose, or what font is being used in Windows (and whether it can also be used inside the Docker environment).

vital depot
#

interesting problem. i think substation alpha is responsible for the font. will dig a bit to see if there is any fallback system

jagged onyx
#

thanks! I understand this is kind of an edge case so if this turns out to be a giant pain in the ass, I can always try to find a font that will fit as many languages/alphabets my MVs are in as possible

jagged onyx
#

okay, I think I (temporarily) solved the problem. It IS a font fallback issue; the only font installed in the Docker environment is DejaVu, which doesn't have CJK characters. fontconfig does specify a list of fallbacks in /etc/fonts/conf.d/65-nonlatin.conf but none of them actually exist on the system. The fix I ended up with is running apt update and apt install fonts-takao-gothic to install the Takao Gothic font, which seems to also update the fontconfig to use the font as a fallback for sans-serifs.

#

I wonder if perhaps the fix then is just to amend the Dockerfiles to add an install step for the Takao font families, assuming no issues regarding licensing; similarly other non-Latin languages could be supported if there are apt packages for them, or another option would be to skip all that and find a way to incorporate something like Noto Sans into the Docker environment to cover as much as possible (again, assuming licensing is okay)

vital depot
#

looks like there's a fonts-noto-cjk package that can be added for now. i didn't try music videos, but it did fix generated subtitles for some songs that i have. will get that added to the docker images