Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

IOT trap -- core dumped


computers / comp.text.tex / Fontspec and OTF font files

SubjectAuthor
* Fontspec and OTF font filesPeter Flynn
+* Re: Fontspec and OTF font filesDaniel Flipo
|`- Re: Fontspec and OTF font filesPeter Flynn
+* Re: Fontspec and OTF font filesManfred Lotz
|`* Re: Fontspec and OTF font filesPeter Flynn
| `- Re: Fontspec and OTF font filesManfred Lotz
`* Re: Fontspec and OTF font filesNuno Silva
 `* Re: Fontspec and OTF font filesUlrike Fischer
  `- Re: Fontspec and OTF font filesPeter Flynn

1
Fontspec and OTF font files

<j0mvsiF6kp8U1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4381&group=comp.text.tex#4381

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pet...@silmaril.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: Fontspec and OTF font files
Date: Tue, 30 Nov 2021 15:56:01 +0000
Lines: 47
Message-ID: <j0mvsiF6kp8U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net aWI9gwn/71PDctZHnOKOagPt0wAFHLHBiNjxVIzb2CJ0piZZ1i
Cancel-Lock: sha1:wPpXNBZXzeHikNUh4oUIpUoYNoA=
X-Mozilla-News-Host: news://news.individual.de:119
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Content-Language: en-US
 by: Peter Flynn - Tue, 30 Nov 2021 15:56 UTC

I just downloaded a copy of Font Awesome 6 from fontawesome.com and
installed their OTF files and re-ran fc-cache.

Fine. fc-list|grep Awesome now returns:

/home/peter/texmf/fonts/opentype/fontawesome6/Font Awesome 6
Free-Solid-900.otf: Font Awesome 6 Free,Font Awesome 6 Free
Solid:style=Solid

1. With this MWA:

\documentclass{article}
\usepackage{fontspec}
\newfontface{fa}{Font Awesome 6 Free Solid}
\begin{document}
\fa\char"f48e
\end{document}

I get the error:

(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg)))kpathsea:make_tex:
Invalid filename `,', contains ','

! Package fontspec Error: The font "," cannot be found.

which is obviously bogus. There is no comma in the font filename.

2. Replace Font Name in \newfontface with the full filename including
the .otf and it fails with the identical message.

3. Copy the font file to the working directory and call it fa.otf
and then put that in the \newfontface line. Same error.

The font file is not corrupt: I inspected it with fontforge and it
contains exactly what it is supposed to.

FWIW:

This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019/Debian)
(preloaded format=xelatex)
\write18 enabled.
entering extended mode
LaTeX2e <2020-02-02> patch level 2

Does anyone know how to overcome this?

Peter

Re: Fontspec and OTF font files

<61a64cec$0$3734$426a74cc@news.free.fr>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4382&group=comp.text.tex#4382

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp1-1.free.fr!not-for-mail
Subject: Re: Fontspec and OTF font files
Newsgroups: comp.text.tex
References: <j0mvsiF6kp8U1@mid.individual.net>
From: dfl...@nowhere.com (Daniel Flipo)
Date: Tue, 30 Nov 2021 17:10:20 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
MIME-Version: 1.0
In-Reply-To: <j0mvsiF6kp8U1@mid.individual.net>
Content-Type: text/plain; charset=utf-8
Content-Language: fr
Content-Transfer-Encoding: 8bit
Lines: 35
Message-ID: <61a64cec$0$3734$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 30 Nov 2021 17:10:20 CET
NNTP-Posting-Host: 91.175.5.155
X-Trace: 1638288620 news-3.free.fr 3734 91.175.5.155:53903
X-Complaints-To: abuse@proxad.net
 by: Daniel Flipo - Tue, 30 Nov 2021 16:10 UTC

Le 30/11/2021 à 16:56, Peter Flynn a écrit :
> I just downloaded a copy of Font Awesome 6 from fontawesome.com and
> installed their OTF files and re-ran fc-cache.
>
> Fine. fc-list|grep Awesome now returns:
>
> /home/peter/texmf/fonts/opentype/fontawesome6/Font Awesome 6
> Free-Solid-900.otf: Font Awesome 6 Free,Font Awesome 6 Free
> Solid:style=Solid
>
> 1. With this MWA:
>
> \documentclass{article}
> \usepackage{fontspec}
> \newfontface{fa}{Font Awesome 6 Free Solid}
> \begin{document}
> \fa\char"f48e
> \end{document}
>
> I get the error:
>
> (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg)))kpathsea:make_tex:
> Invalid filename `,', contains ','
>
> ! Package fontspec Error: The font "," cannot be found.

What about calling the font by filename?

\newfontface{fa}{FontAwesome6Free-Solid-900.otf}

I would avoid spaces in file names: "FontAwesome6Free-Solid-900.otf"
instead of "Font Awesome 6 Free-Solid-900.otf".

--
Daniel Flipo

Re: Fontspec and OTF font files

<j0ncmaF92k6U1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4383&group=comp.text.tex#4383

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pet...@silmaril.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: Re: Fontspec and OTF font files
Date: Tue, 30 Nov 2021 19:34:34 +0000
Lines: 42
Message-ID: <j0ncmaF92k6U1@mid.individual.net>
References: <j0mvsiF6kp8U1@mid.individual.net>
<61a64cec$0$3734$426a74cc@news.free.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net rIAkkBgF0OQjuW0PopKWCAQETTIcKK2gfP2HYGboEHZaoh+4p8
Cancel-Lock: sha1:GWA7ye2ubt1G7wEzItdDl4Rki1I=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
In-Reply-To: <61a64cec$0$3734$426a74cc@news.free.fr>
Content-Language: en-US
 by: Peter Flynn - Tue, 30 Nov 2021 19:34 UTC

On 30/11/2021 16:10, Daniel Flipo wrote:
> Le 30/11/2021 à 16:56, Peter Flynn a écrit :
>> I just downloaded a copy of Font Awesome 6 from fontawesome.com and
>> installed their OTF files and re-ran fc-cache.
>>
>> Fine. fc-list|grep Awesome now returns:
>>
>> /home/peter/texmf/fonts/opentype/fontawesome6/Font Awesome 6
>> Free-Solid-900.otf: Font Awesome 6 Free,Font Awesome 6 Free
>> Solid:style=Solid
>>
>> 1. With this MWA:
>>
>> \documentclass{article}
>> \usepackage{fontspec}
>> \newfontface{fa}{Font Awesome 6 Free Solid}
>> \begin{document}
>> \fa\char"f48e
>> \end{document}
>>
>> I get the error:
>>
>> (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg)))kpathsea:make_tex:
>> Invalid filename `,', contains ','
>>
>> ! Package fontspec Error: The font "," cannot be found.
>
> What about calling the font by filename?
>
> \newfontface{fa}{FontAwesome6Free-Solid-900.otf}
>
> I would avoid spaces in file names: "FontAwesome6Free-Solid-900.otf"
> instead of "Font Awesome 6 Free-Solid-900.otf".

That's what I did in #3:

>> 3. Copy the font file to the working directory and call it fa.otf
>> and then put that in the \newfontface line. Same error.

No change.

Peter

Re: Fontspec and OTF font files

<20211201073341.602f2c71.ml_news@posteo.de>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4384&group=comp.text.tex#4384

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ml_n...@posteo.de (Manfred Lotz)
Newsgroups: comp.text.tex
Subject: Re: Fontspec and OTF font files
Date: Wed, 1 Dec 2021 07:33:41 +0100
Lines: 17
Message-ID: <20211201073341.602f2c71.ml_news@posteo.de>
References: <j0mvsiF6kp8U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Trace: individual.net YNva//a7aBP6mT3vU+3KIwIWyXy4FNmET16OHCaoiiCNMFTvUS
X-Orig-Path: ID-313237.user.individual.net!not-for-mail
Cancel-Lock: sha1:HhEqAnZK7acMS4fCXZbsH6FvbX0=
X-Newsreader: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
 by: Manfred Lotz - Wed, 1 Dec 2021 06:33 UTC

On Tue, 30 Nov 2021 15:56:01 +0000
Peter Flynn <peter@silmaril.ie> wrote:

> ! Package fontspec Error: The font "," cannot be found.
>
> which is obviously bogus. There is no comma in the font filename.

Of course, there is a comma as the output of fc-list.

... Font Awesome 6 Free,Font Awesome 6 Free Solid:style=Solid

If such a specification is ok the fontspec package has to be fixed. If it is not ok then the font definition has to be fixed.

--
Manfred

Re: Fontspec and OTF font files

<j0q522Fp90gU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4386&group=comp.text.tex#4386

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pet...@silmaril.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: Re: Fontspec and OTF font files
Date: Wed, 1 Dec 2021 20:42:42 +0000
Organization: Usenet Labs Bozon Detector Facility
Lines: 25
Message-ID: <j0q522Fp90gU1@mid.individual.net>
References: <j0mvsiF6kp8U1@mid.individual.net>
<20211201073341.602f2c71.ml_news@posteo.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net R+liWCap0/knuadGQl3VxgUSIh1ntLrK//OVTNJYFQNR5WhEhB
Cancel-Lock: sha1:hUufFk4Tp3HcUqoQneL+xuWxbXE=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
In-Reply-To: <20211201073341.602f2c71.ml_news@posteo.de>
Content-Language: en-US
 by: Peter Flynn - Wed, 1 Dec 2021 20:42 UTC

On 01/12/2021 06:33, Manfred Lotz wrote:
> On Tue, 30 Nov 2021 15:56:01 +0000
> Peter Flynn <peter@silmaril.ie> wrote:
>
>> ! Package fontspec Error: The font "," cannot be found.
>>
>> which is obviously bogus. There is no comma in the font filename.
>
> Of course, there is a comma as the output of fc-list.
>
> ... Font Awesome 6 Free,Font Awesome 6 Free Solid:style=Solid
>
> If such a specification is ok the fontspec package has to be fixed. If it is not ok then the font definition has to be fixed.

That is standard in fc-list. The comma separates multiple Font Names for
the same font, eg

/usr/share/texlive/texmf-dist/fonts/truetype/catharsis/cormorantgaramond/CormorantGaramond-SemiBold.ttf:
Cormorant Garamond,Cormorant Garamond SemiBold:style=SemiBold,Regular

The field separator is the colon. The comma is just data (or a subfield
delimiter). So there is no comma in the filename.

Peter

Re: Fontspec and OTF font files

<so9tr1$i9d$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4388&group=comp.text.tex#4388

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nunojsi...@invalid.invalid (Nuno Silva)
Newsgroups: comp.text.tex
Subject: Re: Fontspec and OTF font files
Date: Thu, 02 Dec 2021 07:49:52 +0000
Organization: A noiseless patient Spider
Lines: 71
Message-ID: <so9tr1$i9d$1@dont-email.me>
References: <j0mvsiF6kp8U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="0f5a35cda2e1ffb84ca43307f8c0e402";
logging-data="18733"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TBqjzqiJnXO7MyjLOrufW"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Cancel-Lock: sha1:s6EOth86kdLubwy4KVYnhVxHax8=
 by: Nuno Silva - Thu, 2 Dec 2021 07:49 UTC

On 2021-11-30, Peter Flynn wrote:

> I just downloaded a copy of Font Awesome 6 from fontawesome.com and
> installed their OTF files and re-ran fc-cache.
>
> Fine. fc-list|grep Awesome now returns:
>
> /home/peter/texmf/fonts/opentype/fontawesome6/Font Awesome 6
> Free-Solid-900.otf: Font Awesome 6 Free,Font Awesome 6 Free
> Solid:style=Solid
>
> 1. With this MWA:
>
>
> \documentclass{article}
> \usepackage{fontspec}
> \newfontface{fa}{Font Awesome 6 Free Solid}

Is this by any chance missing a backslash in the font selection command
name?

I'm able to successfully use \newfontface for "DejaVu Sans", which shows
up in fc-list here with a comma, but only with a backslash in the new
command name, i.e. like

\newfontface{\fa}{Font Awesome 6 Free Solid}

> \begin{document}
> \fa\char"f48e

With XeLaTeX here, it appears that all digits need to be uppercase, but
I may be doing something wrong.

> \end{document}
>
> I get the error:
>
> (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg)))kpathsea:make_tex:
> Invalid filename `,', contains ','
>
> ! Package fontspec Error: The font "," cannot be found.
>
> which is obviously bogus. There is no comma in the font filename.
>
> 2. Replace Font Name in \newfontface with the full filename including
> the .otf and it fails with the identical message.
>
> 3. Copy the font file to the working directory and call it fa.otf
> and then put that in the \newfontface line. Same error.
>
> The font file is not corrupt: I inspected it with fontforge and it
> contains exactly what it is supposed to.
>
> FWIW:
>
> This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019/Debian)
> (preloaded format=xelatex)
> \write18 enabled.
> entering extended mode
> LaTeX2e <2020-02-02> patch level 2
>
> Does anyone know how to overcome this?
>
> Peter

--
Nuno Silva

Re: Fontspec and OTF font files

<20211202092843.20a1e32f.ml_news@posteo.de>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4389&group=comp.text.tex#4389

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ml_n...@posteo.de (Manfred Lotz)
Newsgroups: comp.text.tex
Subject: Re: Fontspec and OTF font files
Date: Thu, 2 Dec 2021 09:28:43 +0100
Lines: 66
Message-ID: <20211202092843.20a1e32f.ml_news@posteo.de>
References: <j0mvsiF6kp8U1@mid.individual.net>
<20211201073341.602f2c71.ml_news@posteo.de>
<j0q522Fp90gU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Trace: individual.net YF5q5ljUvjRKAk+R9Kha3gRQWpxTR3W9o8ZchBBOSfYSiHJVQa
X-Orig-Path: ID-313237.user.individual.net!not-for-mail
Cancel-Lock: sha1:3j88N3E2tCQUv9L/1baUbv013dI=
X-Newsreader: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
 by: Manfred Lotz - Thu, 2 Dec 2021 08:28 UTC

On Wed, 1 Dec 2021 20:42:42 +0000
Peter Flynn <peter@silmaril.ie> wrote:

> On 01/12/2021 06:33, Manfred Lotz wrote:
> > On Tue, 30 Nov 2021 15:56:01 +0000
> > Peter Flynn <peter@silmaril.ie> wrote:
> >
> >> ! Package fontspec Error: The font "," cannot be found.
> >>
> >> which is obviously bogus. There is no comma in the font filename.
> >
> > Of course, there is a comma as the output of fc-list.
> >
> > ... Font Awesome 6 Free,Font Awesome 6 Free Solid:style=Solid
> >
> > If such a specification is ok the fontspec package has to be fixed.
> > If it is not ok then the font definition has to be fixed.
>
> That is standard in fc-list. The comma separates multiple Font Names
> for the same font, eg
>
> /usr/share/texlive/texmf-dist/fonts/truetype/catharsis/cormorantgaramond/CormorantGaramond-SemiBold.ttf:
> Cormorant Garamond,Cormorant Garamond SemiBold:style=SemiBold,Regular
>
> The field separator is the colon. The comma is just data (or a
> subfield delimiter). So there is no comma in the filename.
>

Ok.

But interesting is the following.

This minimal sample works find and creates a pdf

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Font Awesome 5 Free}
\begin{document}
The answer is 42!
\end{document}

If I change the \setmainfont to
\setmainfont{Font Awesome 5 Free Solid}

then I get

../fontfind.aux)
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/ts1cmr.fd) Missing
character: There is no ! (U+0021) in font Font Awesome 5 Free Solid Reg
ular/OT:language=dflt;mapping=tex-text;! [1] (./fontfind.aux)
xdvipdfmx:fatal: Invalid font: -1 (0)

No output PDF file written.
)
Error 256 (driver return code) generating output;
file fontfind.pdf may not be valid.

--
Manfred

Re: Fontspec and OTF font files

<hco25d5y0ihq$.dlg@nililand.de>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4390&group=comp.text.tex#4390

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: new...@nililand.de (Ulrike Fischer)
Newsgroups: comp.text.tex
Subject: Re: Fontspec and OTF font files
Date: Thu, 2 Dec 2021 15:00:23 +0100
Lines: 18
Message-ID: <hco25d5y0ihq$.dlg@nililand.de>
References: <j0mvsiF6kp8U1@mid.individual.net> <so9tr1$i9d$1@dont-email.me>
Reply-To: news3@nililand.de
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net VMauWO21Bb2QdjokH0Bo9wjKCmno83kDcJW59roTRxZAQyknHq
Cancel-Lock: sha1:bbLUJz67S9Pr1L5L1R01oSOlBYI=
User-Agent: 40tude_Dialog/2.0.15.41de
 by: Ulrike Fischer - Thu, 2 Dec 2021 14:00 UTC

Am Thu, 02 Dec 2021 07:49:52 +0000 schrieb Nuno Silva:

>> \documentclass{article}
>> \usepackage{fontspec}
>> \newfontface{fa}{Font Awesome 6 Free Solid}
>
>
> Is this by any chance missing a backslash in the font selection command
> name?

Good catch, that actually triggers the error.

I had assumed that that isn't in the real document ;-(

--
Ulrike Fischer
http://www.troubleshooting-tex.de/

Re: Fontspec and OTF font files

<j0t0h3Fbha7U1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4391&group=comp.text.tex#4391

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pet...@silmaril.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: Re: Fontspec and OTF font files
Date: Thu, 2 Dec 2021 22:43:46 +0000
Organization: Usenet Labs Bozon Detector Facility
Lines: 20
Message-ID: <j0t0h3Fbha7U1@mid.individual.net>
References: <j0mvsiF6kp8U1@mid.individual.net> <so9tr1$i9d$1@dont-email.me>
<hco25d5y0ihq$.dlg@nililand.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net LsYMbaSxT+E5VWtt988v6wGYOoQXtxrmZ+nziPgfGhYO16EZ/f
Cancel-Lock: sha1:fRzspWaULWaViBYECbZXZ4BFDXY=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
In-Reply-To: <hco25d5y0ihq$.dlg@nililand.de>
Content-Language: en-US
 by: Peter Flynn - Thu, 2 Dec 2021 22:43 UTC

On 02/12/2021 14:00, Ulrike Fischer wrote:
> Am Thu, 02 Dec 2021 07:49:52 +0000 schrieb Nuno Silva:
>
>>> \documentclass{article}
>>> \usepackage{fontspec}
>>> \newfontface{fa}{Font Awesome 6 Free Solid}
>>
>>
>> Is this by any chance missing a backslash in the font selection command
>> name?
>
> Good catch, that actually triggers the error.
>
> I had assumed that that isn't in the real document ;-(

How embarrassing. Entirely my fault, and probably due to not enough
coffee. Thanks all for helping to spot this, and sorry for wasting your
time.

Peter

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor