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

Bug#616419: tex-gyre: Please register in fontconfig as metric compatible alternatives to the Adobe Fonts



reassign 616419 fontconfig
found 616419 2.8.0-2.1
notfound 616419 2.004.1-2
tags 616419 + patch
thanks

Am 15.03.2011 09:33, schrieb Hilmar Preusse:
Could you explian exactly what has to be done or even provide the
necessary implementation?

As changes to existing fonfconfig config files are necessary, I reassign this request to the fontconfig package.

Dear fontconfig maintainers, citing the project home page, TeX Gyre "is an extensive remake and extension of the freely available 35 base PostScript fonts distributed with Ghostscript ver. 4.00. The important aspect of the project is providing not only the support for TeX but also the cross-platform OpenType format of the fonts."

The attached patch will register these fonts as metric compatible alternatives for the original Type 1 fonts (which look fugly if e.g. used to render web pages that request the Helvetica font).

 Cheers,
- Fabian
diff -Naru fontconfig-2.8.0/conf.d/30-metric-aliases.conf fontconfig-2.8.0.TeXGyre//conf.d/30-metric-aliases.conf
--- fontconfig-2.8.0/conf.d/30-metric-aliases.conf	2009-11-16 18:24:52.000000000 +0100
+++ fontconfig-2.8.0.TeXGyre//conf.d/30-metric-aliases.conf	2011-03-16 10:46:08.000000000 +0100
@@ -12,6 +12,10 @@
 			Nimbus Sans L
 			Nimbus Roman No9 L
 			Nimbus Mono L
+		TeX Gyre fonts:
+			TeXGyreHeros
+			TeXGyreTermes
+			TeXGyreCursor
 
 		Microsoft fonts:
 			Arial
@@ -30,7 +34,7 @@
 			Thorndale AMT
 			Cumberland AMT
 
-	     Of these, URW fonts are design compatible with PostScrict fonts,
+	     Of these, URW and TeX Gyre fonts are design compatible with PostScrict fonts,
 	     and the Liberation, StarOffice, and AMT ones are compatible with
 	     Microsoft fonts.
 
@@ -53,6 +57,7 @@
 	<!-- PostScript -->
 	<alias binding="same">
 	  <family>Nimbus Sans L</family>
+	  <family>TeXGyreHeros</family>
 	  <default>
 	  <family>Helvetica</family>
 	  </default>
@@ -60,6 +65,7 @@
 
 	<alias binding="same">
 	  <family>Nimbus Roman No9 L</family>
+	  <family>TeXGyreTermes</family>
 	  <default>
 	  <family>Times</family>
 	  </default>
@@ -67,6 +73,7 @@
 
 	<alias binding="same">
 	  <family>Nimbus Mono L</family>
+	  <family>TeXGyreCursor</family>
 	  <default>
 	  <family>Courier</family>
 	  </default>
@@ -161,6 +168,7 @@
 	  <family>Helvetica</family>
 	  <accept>
 	  <family>Nimbus Sans L</family>
+	  <family>TeXGyreHeros</family>
 	  </accept>
 	</alias>
 
@@ -168,6 +176,7 @@
 	  <family>Times</family>
 	  <accept>
 	  <family>Nimbus Roman No9 L</family>
+	  <family>TeXGyreTermes</family>
 	  </accept>
 	</alias>
 
@@ -175,6 +184,7 @@
 	  <family>Courier</family>
 	  <accept>
 	  <family>Nimbus Mono L</family>
+	  <family>TeXGyreCursor</family>
 	  </accept>
 	</alias>
 
diff -Naru fontconfig-2.8.0/conf.d/30-texgyre-aliases.conf fontconfig-2.8.0.TeXGyre//conf.d/30-texgyre-aliases.conf
--- fontconfig-2.8.0/conf.d/30-texgyre-aliases.conf	1970-01-01 01:00:00.000000000 +0100
+++ fontconfig-2.8.0.TeXGyre//conf.d/30-texgyre-aliases.conf	2011-03-16 10:42:00.000000000 +0100
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!--
+  TeX Gyre provides metric and shape compatible fonts for some Adobe families.
+  Helvetica, Courier, and Times are handled in 30-metric-aliases.conf.
+  -->
+	<alias binding="same">
+	  <family>Avant Garde</family>
+	  <accept><family>TeXGyreAdventor</family></accept>
+	</alias>
+	<alias binding="same">
+	  <family>Bookman</family>
+	  <accept><family>TeXGyreBonum</family></accept>
+	</alias>
+	<alias binding="same">
+	  <family>New Century Schoolbook</family>
+	  <accept><family>TeXGyreSchola</family></accept>
+	</alias>
+	<alias binding="same">
+	  <family>Palatino</family>
+	  <accept><family>TeXGyrePagella</family></accept>
+	</alias>
+	<alias binding="same">
+	  <family>Zapf Chancery</family>
+	  <accept><family>TeXGyreChorus</family></accept>
+	</alias>
+</fontconfig>
diff -Naru fontconfig-2.8.0/conf.d/45-latin.conf fontconfig-2.8.0.TeXGyre//conf.d/45-latin.conf
--- fontconfig-2.8.0/conf.d/45-latin.conf	2009-11-16 18:24:52.000000000 +0100
+++ fontconfig-2.8.0.TeXGyre//conf.d/45-latin.conf	2011-03-16 10:48:21.000000000 +0100
@@ -19,6 +19,7 @@
 		<family>Luxi Serif</family>
 		<family>Thorndale AMT</family>
 		<family>Thorndale</family>
+		<family>TeXGyreTermes</family>
 		<default><family>serif</family></default>
 	</alias>
 <!--
@@ -35,6 +36,7 @@
 		<family>Albany</family>
 		<family>Nimbus Sans L</family>
 		<family>Luxi Sans</family>
+		<family>TeXGyreHeros</family>
 		<default><family>sans-serif</family></default>
 	</alias>
 <!--
@@ -52,6 +54,7 @@
 		<family>Cumberland AMT</family>
 		<family>Cumberland</family>
 		<family>Nimbus Mono L</family>
+		<family>TeXGyreCursor</family>
 		<default><family>monospace</family></default>
 	</alias>
 <!--
@@ -71,6 +74,7 @@
 		<family>ITC Zapf Chancery Std</family>
 		<family>Zapfino</family>
 		<family>Comic Sans MS</family>
+		<family>TeXGyreChorus</family>
 		<default><family>cursive</family></default>
 	</alias>
 
diff -Naru fontconfig-2.8.0/conf.d/60-latin.conf fontconfig-2.8.0.TeXGyre//conf.d/60-latin.conf
--- fontconfig-2.8.0/conf.d/60-latin.conf	2009-11-16 18:24:52.000000000 +0100
+++ fontconfig-2.8.0.TeXGyre//conf.d/60-latin.conf	2011-03-16 10:49:26.000000000 +0100
@@ -11,6 +11,7 @@
 			<family>Luxi Serif</family>
 			<family>Nimbus Roman No9 L</family>
 			<family>Times</family>
+			<family>TeXGyreTermes</family>
 		</prefer>
 	</alias>
 	<alias>
@@ -27,6 +28,7 @@
 			<family>Lucida Sans Unicode</family>
 			<family>BPG Glaho International</family> <!-- lat,cyr,arab,geor -->
 			<family>Tahoma</family> <!-- lat,cyr,greek,heb,arab,thai -->
+			<family>TeXGyreHeros</family>
 		</prefer>
 	</alias>
 	<alias>
@@ -41,6 +43,7 @@
 			<family>Luxi Mono</family>
 			<family>Nimbus Mono L</family>
 			<family>Courier</family>
+			<family>TeXGyreCursor</family>
 		</prefer>
 	</alias>
 <!--
@@ -64,6 +67,7 @@
 			<family>ITC Zapf Chancery Std</family>
 			<family>Zapfino</family>
 			<family>Comic Sans MS</family>
+			<family>TeXGyreChorus</family>
 		</prefer>
 	</alias>
 

Reply to: