Hi!

On Do, 25 Aug 2022, I wrote:

> I also think about updating gsfonts-x11 to use fonts-urw-base35 (.t1
> files) instead of gsfonts (.pfb files), but I'm not fully sure how to
> map the fonts since the full names in the fonts files look quite
> different (but both contain 35 fonts, so a mapping should be
> possible).  Maybe a job for some rainy day...

I was curious, whether this is possible and so I just tried to patch
gsfonts-x11 to use fonts-urw-base35 instead of gsfonts and it worked
for me.  I kept all font names in fonts.scale and fonts.alias and only
changed the referenced file names.

You'll find an updated gsfonts-x11_0.29_all.deb ans well as the patch
over current GIT version attached.

I had to rename the symlinks from .t1 to .pfb, since X11 doesn't
accept the .t1 names, but this shouldn't be a problem.

What do you think about this change?

Greetings
Roland

Attachment: gsfonts-x11_0.29_all.deb
Description: application/vnd.debian.binary-package

diff --git a/README b/README
index fb1e257..1e01c3c 100644
--- a/README
+++ b/README
@@ -1,9 +1,9 @@
 gsfonts-x11 for Debian
 ======================
 
-This packages makes the 35 Postscript fonts from the gsfonts package
-available to your X server under their "urw" names and via fonts.alias
-with the official "adobe" names, too.
+This packages makes the 35 Postscript fonts from the fonts-urw-base35
+package available to your X server under their "urw" names and via
+fonts.alias with the official "adobe" names, too.
 
 This package does not contain any fonts itself but allows to reuse the
 ghostscript fonts as X11 screen fonts.
diff --git a/debian/changelog b/debian/changelog
index 1c9987a..f70aec8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 gsfonts-x11 (0.29) UNRELEASED; urgency=medium
 
   * Update to Standards-Version 4.6.1 (no changes).
+  * Use fonts from fonts-urw-base35 instead of gsfonts as base.
 
  -- Roland Rosenfeld <[email protected]>  Sat, 11 Jun 2022 11:10:00 +0200
 
diff --git a/debian/control b/debian/control
index a5b5230..5fe35c5 100644
--- a/debian/control
+++ b/debian/control
@@ -11,11 +11,11 @@ Vcs-Browser: https://salsa.debian.org/debian/gsfonts-x11
 Package: gsfonts-x11
 Architecture: all
 Multi-Arch: foreign
-Depends: gsfonts, ${misc:Depends}
-Description: Make Ghostscript fonts available to X11
- This package makes the 35 PostScript fonts from the gsfonts package
- available to your X server under their "urw" names and via
+Depends: fonts-urw-base35, ${misc:Depends}
+Description: Make fonts-urw-base35 fonts available to X11
+ This package makes the 35 PostScript fonts from the fonts-urw-base35
+ package available to your X server under their "urw" names and via
  fonts.alias with the official "adobe" names, too.
  .
  This package does not contain any fonts itself but allows one to
- reuse the ghostscript fonts as X11 screen fonts.
+ reuse the fonts-urw-base35 fonts as classic X11 screen fonts.
diff --git a/debian/copyright b/debian/copyright
index b2a4ccb..11cc372 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,7 +1,7 @@
 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 
 Files: *
-Copyright: Copyright (c) 1999-2018  Roland Rosenfeld <[email protected]>
+Copyright: Copyright (c) 1999-2022  Roland Rosenfeld <[email protected]>
 License: GPL-2
  This program is free software; you can redistribute it and/or modify it
  under the terms of the GNU General Public License as published by the
diff --git a/debian/rules b/debian/rules
index 56f905d..f9d07a5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,6 @@
 #!/usr/bin/make -f
 #
-# (C) 1999-2015 Roland Rosenfeld <[email protected]>, based on
+# (C) 1999-2022 Roland Rosenfeld <[email protected]>
 #
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
@@ -12,9 +12,9 @@ debroot=`pwd`/debian/gsfonts-x11
 	dh $@
 
 override_dh_install-indep:
-	for f in `sed -e '1d;s/ .*//' < fonts.scale`; do \
-		ln -sf ../../type1/gsfonts/$$f \
-			$(debroot)/usr/share/fonts/X11/Type1/$$f; \
+	for f in `sed -e '1d;s/.pfb.*//' < fonts.scale`; do \
+		ln -sf ../../type1/urw-base35/$$f.t1 \
+			$(debroot)/usr/share/fonts/X11/Type1/$$f.pfb; \
 	done
 
 	perl -e 'my $$lines=""; my $$count=0; '\
diff --git a/fonts.scale b/fonts.scale
index ce08be0..58c457e 100644
--- a/fonts.scale
+++ b/fonts.scale
@@ -1,36 +1,36 @@
 35
-a010013l.pfb -urw-urw gothic l-book-r-normal--0-0-0-0-p-0-iso8859-1
-a010015l.pfb -urw-urw gothic l-demibold-r-normal--0-0-0-0-p-0-iso8859-1
-a010033l.pfb -urw-urw gothic l-book-o-normal--0-0-0-0-p-0-iso8859-1
-a010035l.pfb -urw-urw gothic l-demibold-o-normal--0-0-0-0-p-0-iso8859-1
-b018012l.pfb -urw-urw bookman l-light-r-normal--0-0-0-0-p-0-iso8859-1
-b018015l.pfb -urw-urw bookman l-demibold-r-normal--0-0-0-0-p-0-iso8859-1
-b018032l.pfb -urw-urw bookman l-light-i-normal--0-0-0-0-p-0-iso8859-1
-b018035l.pfb -urw-urw bookman l-demibold-i-normal--0-0-0-0-p-0-iso8859-1
-c059013l.pfb -urw-century schoolbook l-regular-r-normal--0-0-0-0-p-0-iso8859-1
-c059016l.pfb -urw-century schoolbook l-bold-r-normal--0-0-0-0-p-0-iso8859-1
-c059033l.pfb -urw-century schoolbook l-medium-i-normal--0-0-0-0-p-0-iso8859-1
-c059036l.pfb -urw-century schoolbook l-bold-i-normal--0-0-0-0-p-0-iso8859-1
-d050000l.pfb -urw-dingbats-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
-n019003l.pfb -urw-nimbus sans l-regular-r-normal--0-0-0-0-p-0-iso8859-1
-n019004l.pfb -urw-nimbus sans l-bold-r-normal--0-0-0-0-p-0-iso8859-1
-n019023l.pfb -urw-nimbus sans l-regular-i-normal--0-0-0-0-p-0-iso8859-1
-n019024l.pfb -urw-nimbus sans l-bold-i-normal--0-0-0-0-p-0-iso8859-1
-n019043l.pfb -urw-nimbus sans l-regular-r-condensed--0-0-0-0-p-0-iso8859-1
-n019044l.pfb -urw-nimbus sans l-bold-r-condensed--0-0-0-0-p-0-iso8859-1
-n019063l.pfb -urw-nimbus sans l-regular-i-condensed--0-0-0-0-p-0-iso8859-1
-n019064l.pfb -urw-nimbus sans l-bold-i-condensed--0-0-0-0-p-0-iso8859-1
-n021003l.pfb -urw-nimbus roman no9 l-regular-r-normal--0-0-0-0-p-0-iso8859-1
-n021004l.pfb -urw-nimbus roman no9 l-medium-r-normal-medium-0-0-0-0-p-0-iso8859-1
-n021023l.pfb -urw-nimbus roman no9 l-regular-i-normal--0-0-0-0-p-0-iso8859-1
-n021024l.pfb -urw-nimbus roman no9 l-medium-i-normal-medium-0-0-0-0-p-0-iso8859-1
-n022003l.pfb -urw-nimbus mono l-regular-r-normal--0-0-0-0-p-0-iso8859-1
-n022004l.pfb -urw-nimbus mono l-bold-r-normal--0-0-0-0-p-0-iso8859-1
-n022023l.pfb -urw-nimbus mono l-regular-o-normal--0-0-0-0-p-0-iso8859-1
-n022024l.pfb -urw-nimbus mono l-bold-o-normal--0-0-0-0-p-0-iso8859-1
-p052003l.pfb -urw-urw palladio l-regular-r-normal--0-0-0-0-p-0-iso8859-1
-p052004l.pfb -urw-urw palladio l-bold-r-normal--0-0-0-0-p-0-iso8859-1
-p052023l.pfb -urw-urw palladio l-medium-i-normal--0-0-0-0-p-0-iso8859-1
-p052024l.pfb -urw-urw palladio l-bold-i-normal--0-0-0-0-p-0-iso8859-1
-s050000l.pfb -urw-standard symbols l-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
-z003034l.pfb -urw-urw chancery l-medium-i-normal-medium-0-0-0-0-p-0-iso8859-1
+URWGothic-Book.pfb -urw-urw gothic l-book-r-normal--0-0-0-0-p-0-iso8859-1
+URWGothic-Demi.pfb -urw-urw gothic l-demibold-r-normal--0-0-0-0-p-0-iso8859-1
+URWGothic-BookOblique.pfb -urw-urw gothic l-book-o-normal--0-0-0-0-p-0-iso8859-1
+URWGothic-DemiOblique.pfb -urw-urw gothic l-demibold-o-normal--0-0-0-0-p-0-iso8859-1
+URWBookman-Light.pfb -urw-urw bookman l-light-r-normal--0-0-0-0-p-0-iso8859-1
+URWBookman-Demi.pfb -urw-urw bookman l-demibold-r-normal--0-0-0-0-p-0-iso8859-1
+URWBookman-LightItalic.pfb -urw-urw bookman l-light-i-normal--0-0-0-0-p-0-iso8859-1
+URWBookman-DemiItalic.pfb -urw-urw bookman l-demibold-i-normal--0-0-0-0-p-0-iso8859-1
+C059-Roman.pfb -urw-century schoolbook l-regular-r-normal--0-0-0-0-p-0-iso8859-1
+C059-Bold.pfb -urw-century schoolbook l-bold-r-normal--0-0-0-0-p-0-iso8859-1
+C059-Italic.pfb -urw-century schoolbook l-medium-i-normal--0-0-0-0-p-0-iso8859-1
+C059-BdIta.pfb -urw-century schoolbook l-bold-i-normal--0-0-0-0-p-0-iso8859-1
+D050000L.pfb -urw-dingbats-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
+NimbusSans-Regular.pfb -urw-nimbus sans l-regular-r-normal--0-0-0-0-p-0-iso8859-1
+NimbusSans-Bold.pfb -urw-nimbus sans l-bold-r-normal--0-0-0-0-p-0-iso8859-1
+NimbusSans-Italic.pfb -urw-nimbus sans l-regular-i-normal--0-0-0-0-p-0-iso8859-1
+NimbusSans-BoldItalic.pfb -urw-nimbus sans l-bold-i-normal--0-0-0-0-p-0-iso8859-1
+NimbusSansNarrow-Regular.pfb -urw-nimbus sans l-regular-r-condensed--0-0-0-0-p-0-iso8859-1
+NimbusSansNarrow-Bold.pfb -urw-nimbus sans l-bold-r-condensed--0-0-0-0-p-0-iso8859-1
+NimbusSansNarrow-Oblique.pfb -urw-nimbus sans l-regular-i-condensed--0-0-0-0-p-0-iso8859-1
+NimbusSansNarrow-BoldOblique.pfb -urw-nimbus sans l-bold-i-condensed--0-0-0-0-p-0-iso8859-1
+NimbusRoman-Regular.pfb -urw-nimbus roman no9 l-regular-r-normal--0-0-0-0-p-0-iso8859-1
+NimbusRoman-Bold.pfb -urw-nimbus roman no9 l-medium-r-normal-medium-0-0-0-0-p-0-iso8859-1
+NimbusRoman-Italic.pfb -urw-nimbus roman no9 l-regular-i-normal--0-0-0-0-p-0-iso8859-1
+NimbusRoman-BoldItalic.pfb -urw-nimbus roman no9 l-medium-i-normal-medium-0-0-0-0-p-0-iso8859-1
+NimbusMonoPS-Regular.pfb -urw-nimbus mono l-regular-r-normal--0-0-0-0-p-0-iso8859-1
+NimbusMonoPS-Bold.pfb -urw-nimbus mono l-bold-r-normal--0-0-0-0-p-0-iso8859-1
+NimbusMonoPS-Italic.pfb -urw-nimbus mono l-regular-o-normal--0-0-0-0-p-0-iso8859-1
+NimbusMonoPS-BoldItalic.pfb -urw-nimbus mono l-bold-o-normal--0-0-0-0-p-0-iso8859-1
+P052-Roman.pfb -urw-urw palladio l-regular-r-normal--0-0-0-0-p-0-iso8859-1
+P052-Bold.pfb -urw-urw palladio l-bold-r-normal--0-0-0-0-p-0-iso8859-1
+P052-Italic.pfb -urw-urw palladio l-medium-i-normal--0-0-0-0-p-0-iso8859-1
+P052-BoldItalic.pfb -urw-urw palladio l-bold-i-normal--0-0-0-0-p-0-iso8859-1
+StandardSymbolsPS.pfb -urw-standard symbols l-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
+Z003-MediumItalic.pfb -urw-urw chancery l-medium-i-normal-medium-0-0-0-0-p-0-iso8859-1

Attachment: signature.asc
Description: PGP signature

Reply via email to