[PATCH] conf.d: Add font family for Noto CJK fonts

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

 



Dear fontconfig list,

I took a look at fontconfig's development and found that bugzilla for
fontconfig is not accessible [1]. The page says " Sorry, entering a bug into
the product fontconfig has been disabled.". It seems that a transition from
cgit + bugzilla to GitLab is ongoing; before the transition settles down, I
think the best way of proposing a patch for fontconfig should be sending an
email here.

Noto CJK fonts [2] provides sans-serif, serif and monospace fonts for CJK
(Chinese, Japanese and Korean) characters. I think it might be better for
fontconfig to properly recongnize them (as sans-serif, serif or monospace).
This patch would modify conf.d/40-nonlatin.conf to register those font's
generic family name.

Plain text patch pasted as follows. A patch file is provided as well as
attachment.


commit dd48e69b4cf4b5e5f351f1cbe54cff98ffe731f6
Author: Boyuan Yang <073plan@xxxxxxxxx>
Date:   Thu Aug 23 17:50:23 2018 -0400

    conf.d: Add font family for Noto CJK fonts

    Noto CJK fonts provides sans-serif, serif and monospace fonts
    for CJK (Chinese, Japanese and Korean) characters. This commit
    would update 40-nonlatin.conf and register those font's generic
    family name to make sure the priority is reasonable.

diff --git a/conf.d/40-nonlatin.conf b/conf.d/40-nonlatin.conf
index 0af8832..4db4005 100644
--- a/conf.d/40-nonlatin.conf
+++ b/conf.d/40-nonlatin.conf
@@ -98,6 +98,23 @@
                <family>SimSun</family>
                <default><family>serif</family></default>
        </alias>
+       <alias>
+               <family>Noto Serif CJK JP</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
+               <family>Noto Serif CJK KR</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
+               <family>Noto Serif CJK SC</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
+               <family>Noto Serif CJK TC</family>
+               <default><family>serif</family></default>
+       </alias>
+
 <!--
   Sans-serif faces
  -->
@@ -181,6 +198,23 @@
                <family>FreeSans</family>
                <default><family>sans-serif</family></default>
        </alias>
+       <alias>
+               <family>Noto Sans CJK JP</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
+               <family>Noto Sans CJK KR</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
+               <family>Noto Sans CJK SC</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
+               <family>Noto Sans CJK TC</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+
 <!--
   Monospace faces
  -->
@@ -200,6 +234,22 @@
                <family>FreeMono</family>
                <default><family>monospace</family></default>
        </alias>
+       <alias>
+               <family>Noto Sans Mono CJK JP</family>
+               <default><family>monospace</family></default>
+       </alias>
+       <alias>
+               <family>Noto Sans Mono CJK KR</family>
+               <default><family>monospace</family></default>
+       </alias>
+       <alias>
+               <family>Noto Sans Mono CJK SC</family>
+               <default><family>monospace</family></default>
+       </alias>
+       <alias>
+               <family>Noto Sans Mono CJK TC</family>
+               <default><family>monospace</family></default>
+       </alias>

 <!--
   Fantasy faces

--
Regards,
Boyuan Yang

[1] https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig
[2] https://www.google.com/get/noto/help/cjk/
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEfncpR22H1vEdkazLwpPntGGCWs4FAlt/MI0ACgkQwpPntGGC
Ws4xIg/+JoVuQmguRUAZeQ/NsjxP4Z/QWkC9P9ENBScyfkVo3LfJR2+1M+g+Xd0g
av5XBruRbRQoGKfuyOZiQtKIU5G6/+0E8BXf6wX7Sb8dqxO1hpF5YxA1V1aQqwMD
GwoNi1M4xjxPWfj/FRgd5RbJugXiuw2CERIamn9QB1YoBE/UoiVhJoEglI1Qo70n
UAh1H5Uj3ZMUoanR7jtm3MH/hZzY897ceu9Fd+ENs5sc9rd94DPdE1R2o2taEPYx
gDuPpKQKP9KDtjOvAtVUyE7cQPb1A9QSViu5KyHMiw7ZF2qcjbYZiGByGmElK7rE
XDpk6Q71wgUCsagM9hWML6RZK+4l2U60krjy9+9VdPxT+6Q+O5pOtuOnl3lmAwh4
KThvtXrbTXPJ0A3662n5wKzoLFWXa8Cq+DOI7FM5q/DSXwTKY8VMYNaFz1J8chHQ
5PKbyJuHy5qtYAB/qG9Vu61YBem9nLAZhKllgU73uKibLbXhd/Q/2i8Yh9Ji7MYm
E4dxgjN+8KRfsIXSM86KeB0B/qjWYeGNJObqHuYTjjtvKRcYrJ322iP4uDka8+8m
6WNMaAcTTOSznWtQG/c+5DulsznUr78i9SBxfdXKl2FSVd5zr6bwGpBDBXtZm/c/
HFG5YQhj+nxhxqAverRZLY7R+beUgy1LO3VeOOIacOWwnIINy0c=
=Jyjp
-----END PGP SIGNATURE-----
From dd48e69b4cf4b5e5f351f1cbe54cff98ffe731f6 Mon Sep 17 00:00:00 2001
From: Boyuan Yang <073plan@gmail.com>
Date: Thu, 23 Aug 2018 17:50:23 -0400
Subject: [PATCH] conf.d: Add font family for Noto CJK fonts

Noto CJK fonts provides sans-serif, serif and monospace fonts
for CJK (Chinese, Japanese and Korean) characters. This commit
would update 40-nonlatin.conf and register those font's generic
family name to make sure the priority is reasonable.
---
 conf.d/40-nonlatin.conf | 50 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/conf.d/40-nonlatin.conf b/conf.d/40-nonlatin.conf
index 0af8832..4db4005 100644
--- a/conf.d/40-nonlatin.conf
+++ b/conf.d/40-nonlatin.conf
@@ -98,6 +98,23 @@
 		<family>SimSun</family>
 		<default><family>serif</family></default>
 	</alias>
+	<alias>
+		<family>Noto Serif CJK JP</family>
+		<default><family>serif</family></default>
+	</alias>
+	<alias>
+		<family>Noto Serif CJK KR</family>
+		<default><family>serif</family></default>
+	</alias>
+	<alias>
+		<family>Noto Serif CJK SC</family>
+		<default><family>serif</family></default>
+	</alias>
+	<alias>
+		<family>Noto Serif CJK TC</family>
+		<default><family>serif</family></default>
+	</alias>
+
 <!--
   Sans-serif faces
  -->
@@ -181,6 +198,23 @@
 		<family>FreeSans</family>
 		<default><family>sans-serif</family></default>
 	</alias>
+	<alias>
+		<family>Noto Sans CJK JP</family>
+		<default><family>sans-serif</family></default>
+	</alias>
+	<alias>
+		<family>Noto Sans CJK KR</family>
+		<default><family>sans-serif</family></default>
+	</alias>
+	<alias>
+		<family>Noto Sans CJK SC</family>
+		<default><family>sans-serif</family></default>
+	</alias>
+	<alias>
+		<family>Noto Sans CJK TC</family>
+		<default><family>sans-serif</family></default>
+	</alias>
+
 <!--
   Monospace faces
  -->
@@ -200,6 +234,22 @@
 		<family>FreeMono</family>
 		<default><family>monospace</family></default>
 	</alias>
+	<alias>
+		<family>Noto Sans Mono CJK JP</family>
+		<default><family>monospace</family></default>
+	</alias>
+	<alias>
+		<family>Noto Sans Mono CJK KR</family>
+		<default><family>monospace</family></default>
+	</alias>
+	<alias>
+		<family>Noto Sans Mono CJK SC</family>
+		<default><family>monospace</family></default>
+	</alias>
+	<alias>
+		<family>Noto Sans Mono CJK TC</family>
+		<default><family>monospace</family></default>
+	</alias>
 
 <!--
   Fantasy faces
-- 
2.18.0

_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
https://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