Skip to contentSkip to conversation

fixsvgfonts-urwps: Add patterns for 'URW Gothic'

PATCH In review Akira Yokosawa 2 participants 5 messages Oct 19, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fixsvgfonts-urwps: Add patterns for 'URW Gothic'

When built on Ubuntu Focal, Figure 3.9 (cartoons/r-2014-CPU-track-meet-phone-booth.pdf) does not have the "TELE" sign.

Ubuntu Hirsute and Fedora 34 don't have this issue, so it looks like Ubuntu Focal lacks some configs for font-name aliases under /etc/fonts/.

As a workaround, add patterns taking care of "URL Gothic".

---
Hi Paul,

I'm not sure if you have the same issue on your Ubuntu 20.04, but I noticed it and tested the workaround on the container image at docker.io/akiyks/perfbook-build-focal:latest.

Thanks, Akira
--

 utilities/fixsvgfonts-urwps.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
utilities/fixsvgfonts-urwps.sh +3 -1
index a3dcd91a..21eb1534 100644
@@ -17,4 +17,6 @@ sed	-e 's+:Helvetica+:Nimbus Sans+g' \
 	-e 's+:Nimbus Sans L+:Nimbus Sans+g' \
 	-e 's+="Nimbus Sans L+="Nimbus Sans+g' \
 	-e 's+:Nimbus Mono L+:Nimbus Mono PS+g' \
-	-e 's+="Nimbus Mono L+="Nimbus Mono PS+g'
+	-e 's+="Nimbus Mono L+="Nimbus Mono PS+g' \
+	-e 's+:URW Gothic L+:URW Gothic+g' \
+	-e 's+="URW Gothic L+="URW Gothic+g'

base-commit: 6991663ee8e326bae30cf6e82c69afb310c2b250

Signature · 1 line
2.17.1
#1 lore raw
Quoted 10 lines · Akira Yokosawa

When built on Ubuntu Focal, Figure 3.9 (cartoons/r-2014-CPU-track-meet-phone-booth.pdf) does not have the "TELE" sign.

Ubuntu Hirsute and Fedora 34 don't have this issue, so it looks like Ubuntu Focal lacks some configs for font-name aliases under /etc/fonts/.

As a workaround, add patterns taking care of "URL Gothic".

Quoted 7 lines

---
Hi Paul,

I'm not sure if you have the same issue on your Ubuntu 20.04, but I noticed it and tested the workaround on the container image at docker.io/akiyks/perfbook-build-focal:latest.

I did not notice until just now. ;-)

I built a Fedora system, and it shows the "TELE" just fine even without this change. But even with this change, I do not see the "TELE" on Ubuntu 20.04. Quite possibly because I am missing fonts?

Thanx, Paul

Quoted 22 lines

Thanks, Akira
--

 utilities/fixsvgfonts-urwps.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
utilities/fixsvgfonts-urwps.sh +3 -1
index a3dcd91a..21eb1534 100644
@@ -17,4 +17,6 @@ sed	-e 's+:Helvetica+:Nimbus Sans+g' \
 	-e 's+:Nimbus Sans L+:Nimbus Sans+g' \
 	-e 's+="Nimbus Sans L+="Nimbus Sans+g' \
 	-e 's+:Nimbus Mono L+:Nimbus Mono PS+g' \
-	-e 's+="Nimbus Mono L+="Nimbus Mono PS+g'
+	-e 's+="Nimbus Mono L+="Nimbus Mono PS+g' \
+	-e 's+:URW Gothic L+:URW Gothic+g' \
+	-e 's+="URW Gothic L+="URW Gothic+g'

base-commit: 6991663ee8e326bae30cf6e82c69afb310c2b250

Signature · 1 line
2.17.1
#2 lore raw
Quoted 19 lines · Paul E. McKenney
Quoted 10 lines · Akira Yokosawa

When built on Ubuntu Focal, Figure 3.9 (cartoons/r-2014-CPU-track-meet-phone-booth.pdf) does not have the "TELE" sign.

Ubuntu Hirsute and Fedora 34 don't have this issue, so it looks like Ubuntu Focal lacks some configs for font-name aliases under /etc/fonts/.

As a workaround, add patterns taking care of "URL Gothic".

Quoted 7 lines

---
Hi Paul,

I'm not sure if you have the same issue on your Ubuntu 20.04, but I noticed it and tested the workaround on the container image at docker.io/akiyks/perfbook-build-focal:latest.

Quoted 5 lines

I did not notice until just now. ;-)

I built a Fedora system, and it shows the "TELE" just fine even without this change. But even with this change, I do not see the "TELE" on Ubuntu 20.04. Quite possibly because I am missing fonts?

Or you might have failed to remove cartoons/r-2014-CPU-track-meet-phone-booth.pdf before rebuilding with this change??

Still no "TELE"?
What does "fc-list | grep "URW Gothic" say?

Thanks, Akira

Quoted 4 lines

Thanx, Paul

Quoted 1 line

Thanks, Akira

[...]

#3 lore raw
Quoted 20 lines · Akira Yokosawa
Quoted 19 lines · Paul E. McKenney
Quoted 17 lines · Akira Yokosawa

When built on Ubuntu Focal, Figure 3.9 (cartoons/r-2014-CPU-track-meet-phone-booth.pdf) does not have the "TELE" sign.

Ubuntu Hirsute and Fedora 34 don't have this issue, so it looks like Ubuntu Focal lacks some configs for font-name aliases under /etc/fonts/.

As a workaround, add patterns taking care of "URL Gothic".

---
Hi Paul,

I'm not sure if you have the same issue on your Ubuntu 20.04, but I noticed it and tested the workaround on the container image at docker.io/akiyks/perfbook-build-focal:latest.

Quoted 8 lines
Quoted 5 lines

I did not notice until just now. ;-)

I built a Fedora system, and it shows the "TELE" just fine even without this change. But even with this change, I do not see the "TELE" on Ubuntu 20.04. Quite possibly because I am missing fonts?

Or you might have failed to remove cartoons/r-2014-CPU-track-meet-phone-booth.pdf before rebuilding with this change??

Apparently, despite having done "make distclean" earlier.

Quoted 1 line

Still no "TELE"?

After explicitly removing that file, the "TELE" is back! Thank you!

Quoted 1 line

What does "fc-list | grep "URW Gothic" say?

$ fc-list | grep "URW Gothic"
/usr/share/fonts/type1/urw-base35/URWGothic-BookOblique.t1: URW Gothic:style=Book Oblique
/usr/share/fonts/type1/urw-base35/URWGothic-DemiOblique.t1: URW Gothic:style=Demi Oblique
/usr/share/fonts/opentype/urw-base35/URWGothic-Book.otf: URW Gothic:style=Book
/usr/share/fonts/type1/gsfonts/a010013l.pfb: URW Gothic L:style=Book
/usr/share/fonts/type1/gsfonts/a010015l.pfb: URW Gothic L:style=Demi
/usr/share/fonts/type1/urw-base35/URWGothic-Book.t1: URW Gothic:style=Book
/usr/share/fonts/opentype/urw-base35/URWGothic-Demi.otf: URW Gothic:style=Demi
/usr/share/fonts/type1/gsfonts/a010033l.pfb: URW Gothic L:style=Book Oblique
/usr/share/fonts/opentype/urw-base35/URWGothic-BookOblique.otf: URW Gothic:style=Book Oblique
/usr/share/fonts/type1/gsfonts/a010035l.pfb: URW Gothic L:style=Demi Oblique
/usr/share/fonts/type1/urw-base35/URWGothic-Demi.t1: URW Gothic:style=Demi
/usr/share/fonts/opentype/urw-base35/URWGothic-DemiOblique.otf: URW Gothic:style=Demi Oblique

Presumably meaning that I have the needed font. ;-)

Thanx, Paul

Quoted 7 lines

Thanks, Akira

Quoted 4 lines

Thanx, Paul

Quoted 1 line

Thanks, Akira

[...]

#4 lore raw
Quoted 27 lines · Paul E. McKenney
Quoted 26 lines · Akira Yokosawa
Quoted 24 lines · Paul E. McKenney
Quoted 10 lines · Akira Yokosawa

When built on Ubuntu Focal, Figure 3.9 (cartoons/r-2014-CPU-track-meet-phone-booth.pdf) does not have the "TELE" sign.

Ubuntu Hirsute and Fedora 34 don't have this issue, so it looks like Ubuntu Focal lacks some configs for font-name aliases under /etc/fonts/.

As a workaround, add patterns taking care of "URL Gothic".

Quoted 7 lines

---
Hi Paul,

I'm not sure if you have the same issue on your Ubuntu 20.04, but I noticed it and tested the workaround on the container image at docker.io/akiyks/perfbook-build-focal:latest.

I did not notice until just now. ;-)

I built a Fedora system, and it shows the "TELE" just fine even without this change. But even with this change, I do not see the "TELE" on Ubuntu 20.04. Quite possibly because I am missing fonts?

Quoted 8 lines
Quoted 2 lines

Or you might have failed to remove cartoons/r-2014-CPU-track-meet-phone-booth.pdf before rebuilding with this change??

Apparently, despite having done "make distclean" earlier.

Quoted 1 line

Still no "TELE"?

After explicitly removing that file, the "TELE" is back! Thank you!

Nice!

I'll update Makefile so that affected .pdf files are rebuilt automatically when any of fix(svg)fonts script is updated.

Quoted 17 lines
Quoted 2 lines

What does "fc-list | grep "URW Gothic" say?

$ fc-list | grep "URW Gothic"
/usr/share/fonts/type1/urw-base35/URWGothic-BookOblique.t1: URW Gothic:style=Book Oblique
/usr/share/fonts/type1/urw-base35/URWGothic-DemiOblique.t1: URW Gothic:style=Demi Oblique
/usr/share/fonts/opentype/urw-base35/URWGothic-Book.otf: URW Gothic:style=Book
/usr/share/fonts/type1/gsfonts/a010013l.pfb: URW Gothic L:style=Book
/usr/share/fonts/type1/gsfonts/a010015l.pfb: URW Gothic L:style=Demi
/usr/share/fonts/type1/urw-base35/URWGothic-Book.t1: URW Gothic:style=Book
/usr/share/fonts/opentype/urw-base35/URWGothic-Demi.otf: URW Gothic:style=Demi
/usr/share/fonts/type1/gsfonts/a010033l.pfb: URW Gothic L:style=Book Oblique
/usr/share/fonts/opentype/urw-base35/URWGothic-BookOblique.otf: URW Gothic:style=Book Oblique
/usr/share/fonts/type1/gsfonts/a010035l.pfb: URW Gothic L:style=Demi Oblique
/usr/share/fonts/type1/urw-base35/URWGothic-Demi.t1: URW Gothic:style=Demi
/usr/share/fonts/opentype/urw-base35/URWGothic-DemiOblique.otf: URW Gothic:style=Demi Oblique
Quoted 1 line

Presumably meaning that I have the needed font. ;-)

It seems that on Ubuntu Focal, those .pfb fonts under /usr/share/fonts/type1/gsfonts/ do not work well with inkscape. I have no idea why...

Thanks, Akira

Quoted 10 lines

Thanx, Paul

Quoted 7 lines

Thanks, Akira

Quoted 4 lines

Thanx, Paul

Quoted 1 line

Thanks, Akira

[...]