All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -perfbook] fixsvgfonts-urwps: Add patterns for 'URW Gothic'
@ 2021-10-19  2:06 Akira Yokosawa
  2021-10-19  4:03 ` Paul E. McKenney
  0 siblings, 1 reply; 5+ messages in thread
From: Akira Yokosawa @ 2021-10-19  2:06 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: perfbook, 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".

Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
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(-)

diff --git a/utilities/fixsvgfonts-urwps.sh b/utilities/fixsvgfonts-urwps.sh
index a3dcd91a..21eb1534 100644
--- a/utilities/fixsvgfonts-urwps.sh
+++ b/utilities/fixsvgfonts-urwps.sh
@@ -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
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH -perfbook] fixsvgfonts-urwps: Add patterns for 'URW Gothic'
  2021-10-19  2:06 [PATCH -perfbook] fixsvgfonts-urwps: Add patterns for 'URW Gothic' Akira Yokosawa
@ 2021-10-19  4:03 ` Paul E. McKenney
  2021-10-19  5:42   ` Akira Yokosawa
  0 siblings, 1 reply; 5+ messages in thread
From: Paul E. McKenney @ 2021-10-19  4:03 UTC (permalink / raw)
  To: Akira Yokosawa; +Cc: perfbook

On Tue, Oct 19, 2021 at 11:06:41AM +0900, Akira Yokosawa wrote:
> 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".
> 
> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
> ---
> 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

>         Thanks, Akira
> --
>  utilities/fixsvgfonts-urwps.sh | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/utilities/fixsvgfonts-urwps.sh b/utilities/fixsvgfonts-urwps.sh
> index a3dcd91a..21eb1534 100644
> --- a/utilities/fixsvgfonts-urwps.sh
> +++ b/utilities/fixsvgfonts-urwps.sh
> @@ -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
> -- 
> 2.17.1
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH -perfbook] fixsvgfonts-urwps: Add patterns for 'URW Gothic'
  2021-10-19  4:03 ` Paul E. McKenney
@ 2021-10-19  5:42   ` Akira Yokosawa
  2021-10-19 13:42     ` Paul E. McKenney
  0 siblings, 1 reply; 5+ messages in thread
From: Akira Yokosawa @ 2021-10-19  5:42 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa

On Mon, 18 Oct 2021 21:03:33 -0700, Paul E. McKenney wrote:
> On Tue, Oct 19, 2021 at 11:06:41AM +0900, Akira Yokosawa wrote:
>> 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".
>>
>> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
>> ---
>> 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?

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

> 
> 							Thanx, Paul
> 
>>         Thanks, Akira
[...]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH -perfbook] fixsvgfonts-urwps: Add patterns for 'URW Gothic'
  2021-10-19  5:42   ` Akira Yokosawa
@ 2021-10-19 13:42     ` Paul E. McKenney
  2021-10-19 15:00       ` Akira Yokosawa
  0 siblings, 1 reply; 5+ messages in thread
From: Paul E. McKenney @ 2021-10-19 13:42 UTC (permalink / raw)
  To: Akira Yokosawa; +Cc: perfbook

On Tue, Oct 19, 2021 at 02:42:59PM +0900, Akira Yokosawa wrote:
> On Mon, 18 Oct 2021 21:03:33 -0700, Paul E. McKenney wrote:
> > On Tue, Oct 19, 2021 at 11:06:41AM +0900, Akira Yokosawa wrote:
> >> 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".
> >>
> >> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
> >> ---
> >> 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?
> 
> 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.

> Still no "TELE"?

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

> 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

>         Thanks, Akira
> 
> > 
> > 							Thanx, Paul
> > 
> >>         Thanks, Akira
> [...]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH -perfbook] fixsvgfonts-urwps: Add patterns for 'URW Gothic'
  2021-10-19 13:42     ` Paul E. McKenney
@ 2021-10-19 15:00       ` Akira Yokosawa
  0 siblings, 0 replies; 5+ messages in thread
From: Akira Yokosawa @ 2021-10-19 15:00 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa

On Tue, 19 Oct 2021 06:42:51 -0700, Paul E. McKenney wrote:
> On Tue, Oct 19, 2021 at 02:42:59PM +0900, Akira Yokosawa wrote:
>> On Mon, 18 Oct 2021 21:03:33 -0700, Paul E. McKenney wrote:
>>> On Tue, Oct 19, 2021 at 11:06:41AM +0900, Akira Yokosawa wrote:
>>>> 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".
>>>>
>>>> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
>>>> ---
>>>> 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?
>>
>> 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.
> 
>> 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.

> 
>> 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. ;-)

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

> 
> 							Thanx, Paul
> 
>>         Thanks, Akira
>>
>>>
>>> 							Thanx, Paul
>>>
>>>>         Thanks, Akira
>> [...]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-19 15:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-19  2:06 [PATCH -perfbook] fixsvgfonts-urwps: Add patterns for 'URW Gothic' Akira Yokosawa
2021-10-19  4:03 ` Paul E. McKenney
2021-10-19  5:42   ` Akira Yokosawa
2021-10-19 13:42     ` Paul E. McKenney
2021-10-19 15:00       ` Akira Yokosawa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.