Re: Installing configuration examples

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

 



On Sat, 2006-09-02 at 09:02 -0700, Keith Packard wrote:
> Right now, we install a pile of configuration examples
> to /etc/fonts/conf.d. I don't think that's a good plan.
> 
> There are two obvious alternatives -- the first is to just stick them
> in /usr/share/doc/fontconfig/examples and let people pull the ones they
> want into /etc/fonts/conf.d. That would allow us to ship a lot more
> examples and catagorize them as appropriate. It would, however, make it
> harder for us to maintain those configuration files and update them in
> future releases.
> 
> The second alternative is to stick them in /etc/fonts/conf.available and
> then let people symlink the desired ones into conf.d.
> 
> Both of these approaches would let us prescribe suitable numeric
> prefixes for the filenames, something the current system lacks. And,
> both would let us catagorize the examples by function.
> 
> Perhaps a mix of the two approaches where the 'officially supported'
> snippets live in /etc/fonts and the 'examples' snippets live
> in /usr/share/doc/fontconfig/exmaples?

++.  In particular, the current practice of only including files
starting with a digit should be removed.

Also, lets clean up the configs as much as possible.  Breaking down
fonts.conf into separate files is good.  We also patch the default
config to add lots of aliases.  Attaching.  Ideally we want to break
this down to something per-language or -script, like for example the
fonts-persian.conf file is currently doing.  Separating all Indic stuff
for example.

We also have a 40-blacklist-fonts for blacklisting some fonts that
FreeType cannot handle correctly, and 50-no-hint-fonts for disabling
hinting and embedded bitmaps on our Indic and a couple other fonts.

Another config file I have in Fedora is for making DejaVu Sans LGC an
alias for DejaVu Sans, and turning off hinting for DejaVu in small sizes
(like we do for Vera).  These can go upstream too I guess.  Attaching
that too.

There's a lot of interest to work on consolidating distro configs and
merge back upstream.  That can follow these changes I believe.


Finally, I like to suggest we start providing two more generic families
that are in CSS but currently not fontconfig: cursive and fantasy.  For
cursive, URW Chancery L can be aliased.  I'm sure there is a font to map
fantasy to too.  This is needed for proper support of these in Firefox.


-- 
behdad
http://behdad.org/
--- fontconfig-2.3.95/fonts.conf.in.defaultconfig	2006-04-14 20:24:26.000000000 -0400
+++ fontconfig-2.3.95/fonts.conf.in	2006-08-11 11:01:08.000000000 -0400
@@ -80,6 +80,8 @@
 		<family>Nimbus Roman No9 L</family>
 		<family>Luxi Serif</family>
 		<family>Kochi Mincho</family>
+                <family>Sazanami Mincho</family>
+                <family>AR PL ZenKai Uni</family>
 		<family>AR PL SungtiL GB</family>
 		<family>AR PL Mingti2L Big5</family>
 		<family>MS 明朝</family>
@@ -100,7 +102,9 @@
 		<family>Albany AMT</family>
 		<family>Nimbus Sans L</family>
 		<family>Luxi Sans</family>
+                <family>Sazanami Gothic</family>
 		<family>Kochi Gothic</family>
+                <family>AR PL ShanHeiSun Uni</family>
 		<family>AR PL KaitiM GB</family>
 		<family>AR PL KaitiM Big5</family>
 		<family>MS ゴシック</family>
@@ -120,6 +124,7 @@
 		<family>Andale Mono</family>
 		<family>Luxi Mono</family>
 		<family>Cumberland AMT</family>
+		<family>Cumberland</family>
 		<family>Nimbus Mono L</family>
 		<family>NSimSun</family>
 		<family>FreeMono</family>
@@ -138,7 +143,7 @@
 		<test qual="all" name="family" compare="not_eq">
 			<string>monospace</string>
 		</test>
-		<edit name="family" mode="append_last">
+		<edit name="family" mode="append_last"> 
 			<string>sans-serif</string>
 		</edit>
 	</match>
@@ -156,11 +161,19 @@
         </alias>
         <alias>
 	  <family>Courier</family>
-	  <accept><family>Nimbus Mono L</family></accept>
+	  <accept>
+	    <family>Cumberland AMT</family>
+	    <family>Courier New</family>
+            <family>Nimbus Mono L</family>
+        </accept>
 	</alias>
         <alias>
 	  <family>Helvetica</family>
-	  <accept><family>Nimbus Sans L</family></accept>
+	  <accept>
+            <family>Nimbus Sans L</family>
+	    <family>Albany AMT</family>
+	    <family>Arial</family>
+          </accept>
 	</alias>
         <alias>
           <family>New Century Schoolbook</family>
@@ -172,7 +185,11 @@
         </alias>
         <alias>
 	  <family>Times</family>
-	  <accept><family>Nimbus Roman No9 L</family></accept>
+	  <accept>
+            <family>Nimbus Roman No9 L</family>
+            <family>Thorndale AMT</family>
+	    <family>Times New Roman</family>
+          </accept>
 	</alias>
         <alias>
 	  <family>Zapf Chancery</family>
@@ -182,6 +199,10 @@
 	  <family>Zapf Dingbats</family>
 	  <accept><family>Dingbats</family></accept>
 	</alias>
+	<alias>
+	  <family>ZapfDingbats</family>
+	  <accept><family>Dingbats</family></accept>
+	</alias>
 	<match target="pattern">
 	  <test name="family">
 	    <string>Symbol</string>
@@ -196,17 +217,52 @@
  -->
  	<alias>
 		<family>Times New Roman</family>
-		<accept><family>Thorndale AMT</family></accept>
+		<accept>
+                        <family>Thorndale AMT</family>
+                        <family>Nimbus Roman No9 L</family>
+                </accept>
 	</alias>
  	<alias>
 		<family>Arial</family>
-		<accept><family>Albany AMT</family></accept>
+		<accept>
+                        <family>Albany AMT</family>
+			<family>Nimbus Sans L</family>
+			<family>Arial</family>
+                </accept>
 	</alias>
  	<alias>
 		<family>Courier New</family>
 		<accept><family>Cumberland AMT</family></accept>
 	</alias>
- 
+ 	<alias>
+		<family>Thorndale AMT</family>
+		<accept>
+			<family>Nimbus Roman No9 L</family>
+                </accept>
+	</alias>
+	<alias>
+		<family>Thorndale</family>
+		<accept>
+			<family>Thorndale AMT</family>
+                        <family>Nimbus Roman No9 L</family>
+                </accept>
+
+	</alias>
+	<alias>
+		<family>Albany</family>
+		<accept>
+			<family>Albany AMT</family>
+			<family>Nimbus Sans L</family>
+			<family>Arial</family>
+                </accept>
+
+	</alias>
+	<alias>
+		<family>Cumberland</family>
+		<accept>
+			<family>Cumberland AMT</family>
+                </accept>
+	</alias>
 <!--
   Some Asian fonts misadvertise themselves as monospaced when
   in fact they are dual-spaced (half and full).  This makes
@@ -293,17 +349,30 @@
 	<alias>
 		<family>serif</family>
 		<prefer>
-			<family>DejaVu Serif</family>
+                        <family>Nimbus Roman No9 L</family>
+			<family>Thorndale AMT</family>
 			<family>Bitstream Vera Serif</family>
 			<family>Times New Roman</family>
-			<family>Thorndale AMT</family>
 			<family>Luxi Serif</family>
-			<family>Nimbus Roman No9 L</family>
 			<family>Times</family>
-			<family>Frank Ruehl</family>
+			<family>KacstQura</family>
+			<family>Frank Ruehl CLM</family>
+                        <family>Lohit Bengali</family>
+			<family>Lohit Gujarati</family>
+			<family>Lohit Hindi</family>
+			<family>Lohit Punjabi</family>
+			<family>Lohit Tamil</family>
+			<family>Lohit Malayalam</family>
+			<family>Lohit Kannada</family>
+			<family>Lohit Telugu</family>
+			<family>Lohit Oriya</family>
+			<family>LKLUG</family>
+			<family>Sazanami Mincho</family>
+			<family>Kochi Mincho</family>
+			<family>ZYSong18030</family>
 			<family>MgOpen Canonica</family>
 			<family>FreeSerif</family>
-			<family>Kochi Mincho</family>
+			<family>AR PL Zenkai Uni</family>
 			<family>AR PL SungtiL GB</family>
 			<family>AR PL Mingti2L Big5</family>
 			<family>MS 明朝</family>
@@ -313,41 +382,68 @@
 	<alias>
 		<family>sans-serif</family>
 		<prefer>
-			<family>DejaVu Sans</family>
+			<family>Luxi Sans</family>
+			<family>Albany AMT</family>
 			<family>Bitstream Vera Sans</family>
 			<family>Verdana</family>
 			<family>Arial</family>
-			<family>Albany AMT</family>
-			<family>Luxi Sans</family>
 			<family>Nimbus Sans L</family>
 			<family>Helvetica</family>
+			<family>KacstQura</family>
 			<family>Nachlieli</family>
-			<family>MgOpen Modata</family>
-			<family>FreeSans</family>
+                        <family>Lohit Bengali</family>
+			<family>Lohit Gujarati</family>
+			<family>Lohit Hindi</family>
+			<family>Lohit Punjabi</family>
+			<family>Lohit Tamil</family>
+			<family>Lohit Malayalam</family>
+			<family>Lohit Kannada</family>
+			<family>Lohit Telugu</family>
+			<family>Lohit Oriya</family>
+			<family>LKLUG</family>
+			<family>Sazanami Gothic</family>
 			<family>Kochi Gothic</family>
-			<family>AR PL KaitiM GB</family>
-			<family>AR PL KaitiM Big5</family>
 			<family>MS ゴシック</family>
-			<family>Baekmuk Dotum</family>
+			<family>MgOpen Modata</family>
+			<family>FreeSans</family>
+                        <family>ZYSong18030</family>
+			<family>AR PL ShanHeiSun Uni</family>
+			<family>AR PL SungtiL GB</family>
+			<family>AR PL Mingti2L Big5</family>
+			<family>Baekmuk Gulim</family>
 			<family>SimSun</family>
 		</prefer>
 	</alias>
 	<alias>
 		<family>monospace</family>
 		<prefer>
-			<family>DejaVu Sans Mono</family>
+			<family>Luxi Mono</family>
 			<family>Bitstream Vera Sans Mono</family>
 			<family>Andale Mono</family>
 			<family>Courier New</family>
 			<family>Cumberland AMT</family>
-			<family>Luxi Mono</family>
+                        <family>KacstQura</family>
+                        <family>Miriam Mono CLM</family>
+                        <family>Lohit Bengali</family>
+                        <family>Lohit Gujarati</family>
+                        <family>Lohit Hindi</family>
+                        <family>Lohit Punjabi</family>
+			<family>Lohit Tamil</family>
+			<family>Lohit Malayalam</family>
+			<family>Lohit Kannada</family>
+			<family>Lohit Telugu</family>
+			<family>Lohit Oriya</family>
+			<family>LKLUG</family>
 			<family>Nimbus Mono L</family>
 			<family>Courier</family>
-			<family>Miriam Mono</family>
+                        <family>Sazanami Gothic</family>
+                        <family>Kochi Gothic</family>
+                        <family>ZYSong18030</family>
+			<family>AR PL ShanHeiSun Uni</family>
+                        <family>AR PL SungtiL GB</family>
+                        <family>AR PL Mingti2L Big5</family>
+                        <family>Baekmuk Gulim</family>
 			<family>FreeMono</family>
-			<family>Kochi Gothic</family>
-			<family>AR PL KaitiM GB</family>
-			<family>Baekmuk Dotum</family>
 		</prefer>
 	</alias>
 

Attachment: 40-blacklist-fonts.conf
Description: application/xml

Attachment: 50-no-hint-fonts.conf
Description: application/xml

Attachment: dejavu-lgc-fonts.conf
Description: application/xml

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
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