[Solved][s]Consider reduce CJK fonts to save space.[s]

This forum is dedicated to new ideas, suggestions and proposals.

[Solved][s]Consider reduce CJK fonts to save space.[s]

Postby gaojicainiao » Nov 20th, '22, 04:55

Chinese and Korean characters are too many and complex so their font files are very large.
For an operating system, especially a live operating system, a single sans font of those languages is enough. They need and would learn to install custom fonts by themselves if they really need to design. Whatever in Microsoft Windows or GNU/Linux.
There is a large font file at "/usr/share/fonts/OTF/source-han/SourceHanSans.ttc". It is large because it contains Chinese (Simplified and traditional), Korean, and Japanese characters, but also because it contains many weights, and even languages characters in others language font style that is more useless.
Generally speaking, there is no need to do so. Just replace it in some individual language font files. Such as "Droid Sans Fallback" (used in Android) font for Chinese, 3.8MiB only but comprehensive.
Last edited by gaojicainiao on Nov 20th, '22, 15:51, edited 3 times in total.
gaojicainiao
 
Posts: 50
Joined: Feb 19th, '22, 16:11

……

Postby gaojicainiao » Nov 20th, '22, 04:57

[A wrong operation second post. Ignore.]
gaojicainiao
 
Posts: 50
Joined: Feb 19th, '22, 16:11

Re: Consider reduce CJK fonts to save space.

Postby sturmvogel » Nov 20th, '22, 07:10

But did you actualy read the package description for what it is for?
Source Han Sans is an OpenType/CFF Pan-CJK font family. This open
source project provides all of the source files that were used to
build these OpenType fonts by using the AFDKO makeotf, sfntedit,
and otf2otc tools.

https://github.com/adobe-fonts/source-han-sans
sturmvogel
 
Posts: 738
Joined: Jul 30th, '12, 00:39

Re: Consider reduce CJK fonts to save space.

Postby gaojicainiao » Nov 20th, '22, 07:36

sturmvogel wrote:But did you actualy read the package description for what it is for?
Source Han Sans is an OpenType/CFF Pan-CJK font family. This open
source project provides all of the source files that were used to
build these OpenType fonts by using the AFDKO makeotf, sfntedit,
and otf2otc tools.

https://github.com/adobe-fonts/source-han-sans


Err...I do not understand what you mean. Is there anything wrong? Or maybe I neglect there may be lack of other kind of korean or japanese open source fonts?
gaojicainiao
 
Posts: 50
Joined: Feb 19th, '22, 16:11

Re: Consider reduce CJK fonts to save space.

Postby sturmvogel » Nov 20th, '22, 09:23

It is not a kind of single font file. This is a SOURCE package where you can build nearly 200 different font configurations/styles for different languages from (Simplified Chinese, Traditional Chinese-Taiwan, Traditional Chinese-Hong Kong, Japanese, Korean ) . So this has to be this big. That's the reason why i linked the github page where you can get informations what this package is for and how to use it.
sturmvogel
 
Posts: 738
Joined: Jul 30th, '12, 00:39

Re: Consider reduce CJK fonts to save space.

Postby gaojicainiao » Nov 20th, '22, 10:29

sturmvogel wrote:It is not a kind of single font file. This is a SOURCE package where you can build nearly 200 different font configurations/styles for different languages from (Simplified Chinese, Traditional Chinese-Taiwan, Traditional Chinese-Hong Kong, Japanese, Korean ) . So this has to be this big. That's the reason why i linked the github page where you can get informations what this package is for and how to use it.

Errr.......It is really confusing a non-English speaker like me. I had been thinking for sometime to understand why our talk was not in same frequency. Now I have an idea. Please try to understand.
The “Source”, is the name of the fonts. That does not mean the file “SourceHanSans.ttc” is a source file like not already compiled source code for program. It is a ready-to-use file, like binary software. So it is not when reading it, it compiles automatically to another font file depending the users' language environment then use.
The name “Source”, the official Chinese name is “思源”, it is also totally not mean something like “source code” of a software.
Files with extension “.ttc”, are collections of some or plenty of single fonts like “.ttf”.
If you download the real source file, the unit of the file size will be “GiB”.
gaojicainiao
 
Posts: 50
Joined: Feb 19th, '22, 16:11

Re: Consider reduce CJK fonts to save space.

Postby morgano » Nov 20th, '22, 13:38

Do you mean that the monster big package currently is the only way to display Chinese (Simplified and traditional), Korean, and Japanese characters ?

If so, i suggest to create an enhancement request in our bugzilla.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1484
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Consider reduce CJK fonts to save space.

Postby gaojicainiao » Nov 20th, '22, 14:29

morgano wrote:Do you mean that the monster big package currently is the only way to display Chinese (Simplified and traditional), Korean, and Japanese characters ?


Do not worry. There are two font files to display those block languages.
"/usr/share/fonts/OTF/source-han/SourceHanSans.ttc" is a fonts file can display block languages in very many weight and language-style, it is a main font file for block languages.
"/usr/share/fonts/TTF/unifont/unifont.ttf" (11.7MiB) is a very basic bitmap font file for all language, it can be used as emergency when users try to change the main font file but removing the original one at first.

I just suggest to change the main block-language font file to some smaller font files which contains only one language and one weight, so to save space. Conventional users will not use so many weights. And font characters of one language but in another language's style is more useless, because they are different very slightly, almost same. Designers will install such special fonts by themselves if they need.

Not many block languages font files in an operating system is always resonable, understandable, not a mistake. Because they are large. Especially for an international and live operating system.
gaojicainiao
 
Posts: 50
Joined: Feb 19th, '22, 16:11

Re: Consider reduce CJK fonts to save space.

Postby sturmvogel » Nov 20th, '22, 14:52

gaojicainiao wrote:Not many block languages font files in an operating system is always resonable, understandable, not a mistake. Because they are large. Especially for an international and live operating system.

Other distributions ship even bigger sourcehansans files and these distributions are the same international and live. Splitting them into several single packages, one for each language like openSUSE and Fedora do, won't decrease the overal size. It only increases the amount of needed maintenance as you have 5 or 6 packages instead of one single package as Mageia has. So what is the real argument here?

openSUSE Tumbleweed: 242MB
Fedora 37: 143 MB
Mageia 8: 123MB
sturmvogel
 
Posts: 738
Joined: Jul 30th, '12, 00:39

Re: Consider reduce CJK fonts to save space.

Postby gaojicainiao » Nov 20th, '22, 15:50

Oh my god. I give up. Sorry for disturbing.
(TT_TT)
Last edited by doktor5000 on Nov 20th, '22, 16:29, edited 1 time in total.
Reason: removed fullquote
gaojicainiao
 
Posts: 50
Joined: Feb 19th, '22, 16:11


Return to Ideas and suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron