Mistake in 40-nonlatin.conf about CJK fonts

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

 




Firstly, I will post my /etc/fonts/conf.d/40-nonlatin.conf here as a reference, because I do not know if it is distro-related. I am using ArchLinux with fontconfig-ubuntu patch.
==============================================================================

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
  Mark common families with their generics so we'll get
  something reasonable
-->


<!--
  Serif faces
 -->
	<alias>
		<family>Nazli</family>
		<family>Lotoos</family>
		<family>Mitra</family>
		<family>Ferdosi</family>
		<family>Badr</family>
		<family>Zar</family>
		<family>Titr</family>
		<family>Jadid</family>
		<family>Kochi Mincho</family>
		<family>AR PL SungtiL GB</family>
		<family>AR PL Mingti2L Big5</family>
		<family>MS 明朝</family>
		<family>NanumMyeongjo</family>
		<family>UnBatang</family>
		<family>Baekmuk Batang</family>
		<family>MgOpen Canonica</family>
		<family>Sazanami Mincho</family>
		<family>AR PL ZenKai Uni</family>
		<family>ZYSong18030</family>
		<family>FreeSerif</family>
		<default><family>serif</family></default>
	</alias>
<!--
  Sans-serif faces
 -->
	<alias>
		<family>Arshia</family>
		<family>Elham</family>
		<family>Farnaz</family>
		<family>Nasim</family>
		<family>Sina</family>
		<family>Roya</family>
		<family>Koodak</family>
		<family>Terafik</family>
		<family>Kochi Gothic</family>
		<family>AR PL KaitiM GB</family>
		<family>AR PL KaitiM Big5</family>
		<family>MS ゴシック</family>
		<family>NanumGothic</family>
		<family>UnDotum</family>
		<family>Baekmuk Dotum</family>
		<family>Baekmuk Gulim</family>
		<family>SimSun</family>
		<family>MgOpen Modata</family>
		<family>MgOpen Moderna</family>
		<family>Sazanami Gothic</family>
		<family>AR PL ShanHeiSun Uni</family>
		<family>ZYSong18030</family>
		<family>FreeSans</family>
		<default><family>sans-serif</family></default>
	</alias>
<!--
  Monospace faces
 -->
 	<alias>
		<family>NanumGothicCoding</family>
		<family>NSimSun</family>
		<family>ZYSong18030</family>
		<family>FreeMono</family>
		<default><family>monospace</family></default>
	</alias>


<!--
  Fantasy faces
 -->
	<alias>
		<family>Homa</family>
		<family>Kamran</family>
		<family>Fantezi</family>
		<family>Tabassom</family>
		<default><family>fantasy</family></default>
	</alias>


<!--
  Cursive faces
 -->
	<alias>
		<family>IranNastaliq</family>
		<family>Nafees Nastaleeq</family>
		<default><family>cursive</family></default>
	</alias>


</fontconfig>


==============================================================================
The problem is, KaiTi and SongTi are acturlly serif, but here they are marked sans-serif.
My patch is:
==============================================================================
*** 40-nonlatin.conf	2012-05-31 23:03:12.835385088 +0800
--- /etc/fonts/conf.d/40-nonlatin.conf	2012-03-11 20:19:15.000000000 +0800
***************
*** 23,26 ****
  		<family>AR PL Mingti2L Big5</family>
- 		<family>AR PL KaitiM GB</family>
- 		<family>AR PL KaitiM Big5</family>
  		<family>MS 明朝</family>
--- 23,24 ----
***************
*** 29,36 ****
  		<family>Baekmuk Batang</family>
- 		<family>SimSun</family>
- 		<family>KaiTi</family>
- 		<family>KaiTi_GB2312</family
  		<family>MgOpen Canonica</family>
  		<family>Sazanami Mincho</family>
- 		<family>AR PL ShanHeiSun Uni</family>
  		<family>AR PL ZenKai Uni</family>
--- 27,30 ----
***************
*** 53,54 ****
--- 47,50 ----
  		<family>Kochi Gothic</family>
+ 		<family>AR PL KaitiM GB</family>
+ 		<family>AR PL KaitiM Big5</family>
  		<family>MS ゴシック</family>
***************
*** 58,64 ****
  		<family>Baekmuk Gulim</family>
! 		<family>WenQuanYi Micro Hei</family>
! 		<family>WenQuanYi Zen Hei</family>
! 		<family>SimHei</family>
! 		<family>FangSong</family>
! 		<family>FangSong_GB2312</family>
  		<family>MgOpen Modata</family>
--- 54,56 ----
  		<family>Baekmuk Gulim</family>
! 		<family>SimSun</family>
  		<family>MgOpen Modata</family>
***************
*** 66,67 ****
--- 58,61 ----
  		<family>Sazanami Gothic</family>
+ 		<family>AR PL ShanHeiSun Uni</family>
+ 		<family>ZYSong18030</family>
  		<family>FreeSans</family>


==============================================================================
Not everyone think that KaiTi-styled fonts are serif. There is surely serif in KaiTi glyph. So I made KaiTi related fonts marked serif.


Regard. 		 	   		  
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig



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

  Powered by Linux