Page 1 of 1

japanese (and other unicode symbols) not shown in browser

Posted: Sun Feb 26, 2023 6:08 pm
by Dingo

Woof Woof!

In Xenialpup 7.5, with every browser I tried, when it comes to the task to display special unicode symbols or japanese like this:

https://sakurapup.com/forum1/

I only get little boxes like this

sakurapup.png
sakurapup.png (141.54 KiB) Viewed 423 times

the same for some little unicode emoticons that youtube users like to put in their descriptions. How can be fixed this?


Re: japanese (and other unicode symbols) not shown in browser

Posted: Sun Feb 26, 2023 7:45 pm
by pp4mnklinux

Xenial pup 7.5 XXL.

Tested in SlimJet 38 portable (cc2 @mikeslr ) and as you can see there is no problem with my browser (tested with Chrome 110 and FF 110.01)

As I wrote in one of my previous posts, I had this problem when using Rox with Tahr Pup 6.0.7, but no problem with xenial viewtopic.php?p=80023#p80023

Possible solutions:- https://support.mozilla.org/bm/questions/1367181


Re: japanese (and other unicode symbols) not shown in browser

Posted: Sun Feb 26, 2023 9:31 pm
by dimkr

Install fonts-noto-cjk.


Re: japanese (and other unicode symbols) not shown in browser

Posted: Sun Feb 26, 2023 11:52 pm
by Dingo
dimkr wrote: Sun Feb 26, 2023 9:31 pm

Install fonts-noto-cjk.

Downloaded the gigantic zip archive of 243 MB, uncompressed and linked the directory with fonts to /root/.fonts directory. Noto-cjk fonts displayed and available to be used in all applications but I still continue to see the boxes instead of Japanese


Re: japanese (and other unicode symbols) not shown in browser

Posted: Mon Feb 27, 2023 3:28 am
by Burunduk

The Droid Sans Fallback font is much smaller (unpacked deb is about 7 MB) but still allows to see all the characters on that sakura site. It's available from the PPM on Fossapup, maybe on Xenial too. Try to search for fonts-droid-fallback.

It's not clear why the browser can't use your fonts. On Fossa only dillo refuses to see the available fonts and shows squares instead. If you can see the Japanese text when you copy the squares in the browser and paste them to the text editor, then something is wrong with the browser settings. Maybe it is configured to use a specific font all the time. But firefox shows unicode chars regardless the settings.


Re: japanese (and other unicode symbols) not shown in browser

Posted: Mon Feb 27, 2023 6:38 am
by dimkr
Dingo wrote: Sun Feb 26, 2023 11:52 pm

to /root/.fonts directory.

Try /usr/share/fonts/TTF and fc-cache -fv, plus make sure you have /etc/fonts/conf.d/70-fonts-noto-cjk.conf


Re: japanese (and other unicode symbols) not shown in browser

Posted: Mon Feb 27, 2023 4:06 pm
by Dingo
dimkr wrote: Mon Feb 27, 2023 6:38 am
Dingo wrote: Sun Feb 26, 2023 11:52 pm

to /root/.fonts directory.

Try /usr/share/fonts/TTF and fc-cache -fv, plus make sure you have /etc/fonts/conf.d/70-fonts-noto-cjk.conf

done. and this time everything worked like a charm. Now I can see webpages in japanese so, today I learned that the /usr/share/fonts/TTF and /root/.fonts directories are not the same thing


Re: japanese (and other unicode symbols) not shown in browser

Posted: Mon Feb 27, 2023 9:49 pm
by Burunduk
Dingo wrote: Mon Feb 27, 2023 4:06 pm

today I learned that the /usr/share/fonts/TTF and /root/.fonts directories are not the same thing

~/.fonts is deprecated but still on the list in /etc/fonts/font.conf on Fossapup64-9.5 and even VanillaDpup-9.3.4 On these systems, fonts put in the ~/.fonts directory are found and can be used without any additional configuration.
The Xenialpup's font.conf seems to be different.