From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE, MAILING_LIST_MULTI,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18564 invoked from network); 24 Sep 2023 08:07:24 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 24 Sep 2023 08:07:24 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 9B13548318D for ; Sun, 24 Sep 2023 10:06:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j-r5izIaXOP3 for ; Sun, 24 Sep 2023 10:06:32 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 857AD483278 for ; Sun, 24 Sep 2023 10:05:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id A9ED0483145 for ; Sun, 24 Sep 2023 10:04:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8gOiV0aBNXg6 for ; Sun, 24 Sep 2023 10:04:51 +0200 (CEST) Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [212.27.42.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 69E57483143 for ; Sun, 24 Sep 2023 10:04:51 +0200 (CEST) Received: from [IPV6:2a01:e0a:c47:500:bc97:e688:30c1:4f25] (unknown [IPv6:2a01:e0a:c47:500:bc97:e688:30c1:4f25]) by smtp2-g21.free.fr (Postfix) with ESMTP id 224A3200410 for ; Sun, 24 Sep 2023 10:04:51 +0200 (CEST) Message-ID: Date: Sun, 24 Sep 2023 10:04:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 To: ntg-context@ntg.nl References: Content-Language: fr From: Jean-Pierre Delange In-Reply-To: Message-ID-Hash: VU7IAXGROT72RXONQLT33YPE77PHBC5K X-Message-ID-Hash: VU7IAXGROT72RXONQLT33YPE77PHBC5K X-MailFrom: adeimantos@free.fr X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Install fonts on MS Windows List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============5142072352458669947==" This is a multi-part message in MIME format. --===============5142072352458669947== Content-Type: multipart/alternative; boundary="------------WJckQWcbT4kE4So328Jwql0p" Content-Language: fr This is a multi-part message in MIME format. --------------WJckQWcbT4kE4So328Jwql0p Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Thanks a lot everybody ! Thank you all for the clarifying information! The problem has been solved using the command recommended by Pablo. All my attempts to clear the Windows font cache have failed, except for this one:  mtxrun --script cache --erase && mtxrun --generate I started by copying the fonts into the \texmf-fontes\data\ directory, then I emptied the cache. Then, the following command: mtxrun --script fonts --list --pattern=didot --all works and correctly returns otf and ttf theano and gfs fonts. And thanks to Andres : your MWE compiles perfectly ! Now, I must confess that I don't know why installing new fonts in c:\windows\fonts, even after laboriously purging the Windows font cache and reloading the CTX font cache, didn't have the expected effects ... Le 24/09/2023 à 07:50, Andres Conrado Montoya a écrit : > I did a test with Windows 10. > > Installed a fresh copy from the garden, Got the GFS Didot font from > Google Fonts, and installed it system-wide (C:\Windows\fonts). After > that, I ran > > mtxrun --script fonts --reload > > Then tried the pattern suggested but did not work. However, then I > tried a pattern without asterisks: > > mtxrun --script fonts --list --pattern=didot --all > > This returned the font: > > C:\griego>mtxrun --script fonts --list --pattern=didot --all > identifier           familyname    fontname filename                   >                 subfont instances > > gfsdidot             gfsdidot      gfsdidotregular >  c:/windows/fonts/GFSDidot-Regular.ttf > gfsdidotnormal       gfsdidot      gfsdidotregular >  c:/windows/fonts/GFSDidot-Regular.ttf > gfsdidotregular      gfsdidot      gfsdidotregular >  c:/windows/fonts/GFSDidot-Regular.ttf > theanodidot          theanodidot   theanodidotregular > c:/windows/fonts/TheanoDidot-Regular.ttf > theanodidotnormal    theanodidot   theanodidotregular > c:/windows/fonts/TheanoDidot-Regular.ttf > theanodidotregular   theanodidot   theanodidotregular > c:/windows/fonts/TheanoDidot-Regular.ttf > > trying to render Pablo's example didn't work at first, but after i > called the fonts with the name returned by mtxrun: > > \mainlanguage[agr] > \definefontfamily[mainface][rm][gfsdidot] > \definefontfamily[mainface][ss][theanodidot] > \setupbodyfont[mainface] > \starttext > GFS Didot: > > \doloopoverlist{\tf, \it, \bf, \bi} >   {\recursestring\input aristotle-grc\par} > > \ss > Theano Didot: > > \input aristotle-grc > \stoptext > > Everything compiles correctly, and the font is used. Since it's only a > single font file with no variants, you don´t get italics, bold etc. > But the font is being used. > > -- > Andrés Conrado Montoya > Andi Kú > andresconrado@gmail.com > http://sesentaycuatro.com > http://messier87.com > http://chiquitico.org > ---------------------------------------- > Los fines no justifican los medios, porque la medida verdadera de > nuestro carácter está dada por los medios que estamos dispuestos a > utilizar, no por los fines que proclamamos. > ---------------------------------------- > > “You develop an instant global consciousness, a people orientation, an > intense dissatisfaction with the state of the world, and a compulsion > to do something about it. From out there on the moon, international > politics look so petty. You want to grab a politician by the scruff of > the neck and drag him a quarter of a million miles out and say, ‘Look > at that, you son of a bitch.’” — Apollo 14 astronaut Edgar Mitchell > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist :ntg-context@ntg.nl /https://www.ntg.nl/mailman/listinfo/ntg-context > webpage :https://www.pragma-ade.nl /http://context.aanhet.net > archive :https://bitbucket.org/phg/context-mirror/commits/ > wiki :https://contextgarden.net > ___________________________________________________________________________________ -- Jean-Pierre Delange Ancients&Moderns "Few discoveries are more irritating than those which expose the pedigree of ideas". Lord Acton --------------WJckQWcbT4kE4So328Jwql0p Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Thanks a lot everybody !

Thank you all for the clarifying information! The problem has been solved using the command recommended by Pablo. All my attempts to clear the Windows font cache have failed, except for this one:

 mtxrun --script cache --erase && mtxrun --generate

I started by copying the fonts into the \texmf-fontes\data\ directory, then I emptied the cache. Then, the following command:

 mtxrun --script fonts --list --pattern=didot --all 

works and correctly returns otf and ttf theano and gfs fonts.

And thanks to Andres : your MWE compiles perfectly !

Now, I must confess that I don't know why installing new fonts in c:\windows\fonts, even after laboriously purging the Windows font cache and reloading the CTX font cache, didn't have the expected effects ...

Le 24/09/2023 à 07:50, Andres Conrado Montoya a écrit :
I did a test with Windows 10. 

Installed a fresh copy from the garden, Got the GFS Didot font from Google Fonts, and installed it system-wide (C:\Windows\fonts). After that, I ran 

mtxrun --script fonts --reload

Then tried the pattern suggested but did not work. However, then I tried a pattern without asterisks:

mtxrun --script fonts --list --pattern=didot --all

This returned the font: 

C:\griego>mtxrun --script fonts --list --pattern=didot --all
identifier           familyname    fontname             filename                                   subfont   instances

gfsdidot             gfsdidot      gfsdidotregular      c:/windows/fonts/GFSDidot-Regular.ttf
gfsdidotnormal       gfsdidot      gfsdidotregular      c:/windows/fonts/GFSDidot-Regular.ttf
gfsdidotregular      gfsdidot      gfsdidotregular      c:/windows/fonts/GFSDidot-Regular.ttf
theanodidot          theanodidot   theanodidotregular   c:/windows/fonts/TheanoDidot-Regular.ttf
theanodidotnormal    theanodidot   theanodidotregular   c:/windows/fonts/TheanoDidot-Regular.ttf
theanodidotregular   theanodidot   theanodidotregular   c:/windows/fonts/TheanoDidot-Regular.ttf

trying to render Pablo's example didn't work at first, but after i called the fonts with the name returned by mtxrun:

\mainlanguage[agr]
\definefontfamily[mainface][rm][gfsdidot]
\definefontfamily[mainface][ss][theanodidot]
\setupbodyfont[mainface]
\starttext
GFS Didot:

\doloopoverlist{\tf, \it, \bf, \bi}
  {\recursestring\input aristotle-grc\par}

\ss
Theano Didot:

\input aristotle-grc
\stoptext

Everything compiles correctly, and the font is used. Since it's only a single font file with no variants, you don´t get italics, bold etc. But the font is being used. 

--
Andrés Conrado Montoya
Andi Kú
andresconrado@gmail.com
http://sesentaycuatro.com
----------------------------------------
Los fines no justifican los medios, porque la medida verdadera de nuestro carácter está dada por los medios que estamos dispuestos a utilizar, no por los fines que proclamamos.
----------------------------------------

“You develop an instant global consciousness, a people orientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, ‘Look at that, you son of a bitch.’” — Apollo 14 astronaut Edgar Mitchell


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________
-- 
Jean-Pierre Delange
Ancients&Moderns
"Few discoveries are more irritating than those which expose the pedigree of ideas". Lord Acton
--------------WJckQWcbT4kE4So328Jwql0p-- --===============5142072352458669947== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ --===============5142072352458669947==--