m1k1o / neko

A self hosted virtual browser that runs in docker and uses WebRTC.
https://neko.m1k1o.net/
Apache License 2.0
5.98k stars 449 forks source link

The arm-base cannot render Japanese and Chinese characters #190

Closed kaiyuhou closed 1 year ago

kaiyuhou commented 1 year ago

I just tried the latest arm-chromium and arm-firefox, and noticed that the Japanese/Chinese fonts cannot be correct showed. I think there should be some fonts missing in the arm-base. As shown on the screen capture below, this is the Japanese version of Youtube.

image

kaiyuhou commented 1 year ago

Here is a compromised solution for those who do not want to recompile the whole arm-base

After starting the image:

docker exec -it [ContainerID] /bin/bash
root@[ContainerID]:/# apt update
root@[ContainerID]:/# apt install -y locates ttf-wqy-zenhei    # or fonts-takao-mincho, fonts-wqy-zenhei
root@[ContainerID]:/# locale-gen en_US.UTF-8                    # not sure if really matter

Then, Japanese/Chinese characters can be correctly rendered.

m1k1o commented 1 year ago

It has been added recently https://github.com/m1k1o/neko/commit/7d71fd2bc6437a508191684210805746e07deb96 but arm containers are not built automatically, so they are mostly outdated (see docs).