asian font configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi keithp and all.

a few issues relating to asian font support in fontconfig.

one!

korean language detection is "broken". only two of all the korean fonts i
have on my system are correctly identified as being korean:

# fc-list ':lang=ko'
Baekmuk Batang:style=Regular
Baekmuk Gulim:style=Regular

all of apples korean fonts that ship with macos x, and even two of
the baekmuk fonts are missing. this needs to be fixed.


two!

the default configuration for fontconfig is a bit on the scarce side
regarding font aliases and substitutions for asian fonts.
please consider incorporating the attached file into the distribution.
exactly which default substitution fonts should be used -- batang or dotum,
mincho or gothic, etc -- should probably be discussed.


three!

i understand that due to the incapability of freetype to use CMaps to
encode CID fonts, the ability to use CID-fonts with fontconfig is severely
limited. however, it would be really really nice if fontconfig were extended
in this area.

i would like to query fontconfig for the location of CMap resource files.
they are font-related and forcing pdf and postscript tools to use a separate
configuration for finding them kinda stinks. 

i think that fontconfig should look at the registry-ordering in the
CID System Info dict and put to good use. add a property FC_CSI and 
put in a corresponding FC_LANG tag for CID-fonts.

Munhwa-Regular:csi=Adobe-Korea1:lang=ko
MOEKai:csi=Adobe-CNS1:lang=zh-TW

thanks,
tor
-------------- next part --------------
<?xml version="1.0"?>

<fontconfig>

<dir>/usr/local/share/ghostscript/fonts</dir>

<!-- Defaults by asian language tag -->

<match target="pattern">
	<test name="lang"><string>zh-TW</string></test>
	<edit name="family" mode="append"><string>AR PL KaitiM Big5</string></edit>
</match>

<match target="pattern">
	<test name="lang"><string>zh-CN</string></test>
	<edit name="family" mode="append"><string>AR PL KaitiM GB</string></edit>
</match>

<match target="pattern">
	<test name="lang"><string>ja</string></test>
	<edit name="family" mode="append"><string>Kochi Gothic</string></edit>
</match>

<match target="pattern">
	<test name="lang"><string>ko</string></test>
	<edit name="family" mode="append"><string>Baekmuk Dotum</string></edit>
</match>

<!-- workaround korean lang not being detected correctly ... -->
<match target="pattern">
	<test name="lang"><string>ko</string></test>
	<!-- hmm there is no mode="delete" ... -->
	<edit name="lang" mode="assign"><string>zu</string></edit>
</match>

<!-- Traditional Chinese -->

<alias>
	<family>MSung-Light</family>
	<family>MSung-Medium</family>
	<accept><family>AR PL Mingti2L Big5</family></accept>
</alias>

<alias>
	<family>MHei-Medium</family>
	<family>MKai-Medium</family>
	<family>MingLiU</family>
	<family>PMingLiU</family>
	<accept><family>AR PL KaitiM Big5</family></accept>
</alias>

<!-- Simplified Chinese -->

<alias>
	<family>STSong-Light</family>
	<family>STFangsong-Light</family>
	<family>SimSun</family>
	<family>NSimSun</family>
	<accept><family>AR PL SungtiL GB</family></accept>
</alias>

<alias>
	<family>STHeiti-Regular</family>
	<family>STKaiti-Regular</family>
	<family>SimHei</family>
	<accept><family>AR PL KaitiM GB</family></accept>
</alias>

<!-- Japanese -->

<alias>
	<family>Ryumin-Light</family>
	<family>Ryumin-Medium</family>
	<family>HeiseiMin-W3</family>
	<family>MS-Mincho</family>
	<family>MS-PMincho</family>
	<accept><family>Hiragino Mincho Pro W3</family></accept>
	<accept><family>Sazanami Mincho</family></accept>
	<accept><family>Kochi Mincho</family></accept>
</alias>

<alias>
	<family>GothicBBB-Medium</family>
	<family>HeiseiKakuGo-W5</family>
	<family>MS-Gothic</family>
	<family>MS-PGothic</family>
	<family>MS-UIGothic</family>
	<accept><family>Hiragino Kaku Gothic Pro W3</family></accept>
	<accept><family>Sazanami Gothic</family></accept>
	<accept><family>Kochi Gothic</family></accept>
</alias>

<!-- Korean -->

<alias>
	<family>Batang</family>
	<family>BatangChe</family>
	<family>Gungsuh</family>
	<family>GungsuhChe</family>
	<family>HYSMyeongJo-Medium</family>
	<accept><family>Baekmuk Batang</family></accept>
</alias>

<alias>
	<family>Gulim</family>
	<family>GulimChe</family>
	<family>HYRGoThic-Medium</family>
	<accept><family>Baekmuk Gulim</family></accept>
</alias>

<alias>
	<family>Dotum</family>
	<family>DotumChe</family>
	<family>HYGoThic-Medium</family>
	<accept><family>Baekmuk Dotum</family></accept>
</alias>

</fontconfig>


[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux