that definitely works (and i support that 100%), but i'm also curious, what other cjk fonts do you know of? there's font-sarasa-gothic (extremely huge like iosevka) and then i'm not aware of many 'full cjk' sets that aren't one-language.
if there's something else workable though, might be able to pick something that everyone likes the look of :p
Not sure where to draw the line of fonts included by default. After font-noto and font-noto-emoji (installed by default), the rest of the noto fonts (font-noto-all) is 421 MiB so not really feasible to have preinstalled everywhere. Sure, I doubt anyone would really need font-noto-mayan-numerals or many others. Funnily font-noto-all doesn't even seem to include font-noto-cjk which is another 88 MiB
Sure, I know this issue is only about cjk but why preinstall cjk and not e.g. Arabic or any other script people use? I know preinstalling just latin1 is bad for UX that's why I said I'm not sure what fonts for various scripts to preinstall and which ones not. Number of speakers worldwide?
i think cjk in itself is pretty huge, because that's china-japan-korea which is a pretty massive part of the internet. it's quite big compared to any other individual language.. i would say it's the second biggest after "a latin script" as a quick 'shorthand of language spec'?
of course then we get to all the other scripts, so i'm not really sure how we want to decide.
TBH, I'm not sure if we shouldn't include Arabic script.
I can imagine it would suck for an Arabic speaker to download pmOS and notice that all their family's and friend's contact names are just □□□□□ (or do they use latin for their names??).
I'm also shocked at the size of font-noto-cjk. font-twemoji is 3MiB and font-noto-emoji is 9MiB. Then again, there are a lot more Chinese characters than there are emoji. I guess the main issue is that fonts include all possible characters, instead of just radicals and the rules to combine them. However, fixing that would probably require tinkering with font rendering engines.
Then again, there are a lot more Chinese characters than there are emoji. I guess the main issue is that fonts include all possible characters, instead of just radicals and the rules to combine them. However, fixing that would probably require tinkering with font rendering engines.
To elaborate on this a bit: the current approach font CJK fonts is the equivalent of having a single glyph for each possible syllable in English -- instead of having just individual letters (which are a couple of orders of magnitude less) and rules on how to combine them .
Is this something that could be dealt through pmbootstrap or the ondev installer? So that if the user chooses a specific locale, they're automatically installed?
The locale is unrelated; my locale is en_GB.UTF-8, but I have contacts with names in Chinese.
Is this something that could be dealt through pmbootstrap or the ondev installer?
Indeed, a step offering to install extra fonts could be an alternative solution. I'm not sure about the benefits of it though; _pmb_recommends can be overriden too, right?
I gathered a bit of feedback from native speakers (since I'm in no way qualified to say anything beyond "it renders"):
Noto CJK seems to be a rather neutral font and look okay for both Chinese and Japanese.
Hanazono looks a lot "better" for Japanese, but looks "weird" for Chinese.
The "weird" is something like what we'd think if the default font for English text is an exotic-looking one and italic used for regular text. Readable, but somehow looks wrong.
I've come across a few other languages that don't render. E.g.: the author's name in https://www.atbrakhi.dev/
I think that installing font-noto-all might be the best solution; that meta-package pulls all the other font-noto-* packages which each contain fonts for a separate languages. I guess that pmbootstrap could allow disabling them when doing manual builds? But it seems sane to include them in upstream builds.
Hi, I just noticed this issue, while I had filled a relevant issue last week.
A possible solution would be somewhat opposite to !5469 (merged): include font-droid-nonlatin by default and make it opt-out in pmbootstrap. Its footprint is 13.4 MB and it contains Arabic and some other scripts too.
We'll probably want pmboostrap to prompt whether somebody wants to include these fonts or not when building an image (e.g.: in the same way that it prompts for a DE, etc).
I haven't had time to try and hack this, so if someone else has time, feel free.
For the official images, we should enable these by default. People should be able to read their own name (or names of family and friends) and their own language(s) out of the box.
For the official images, we should enable these by default. People should be able to read their own name (or names of family and friends) and their own language(s) out of the box.
Agreed. 15MiB seems like a very reasonable price to pay too