ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Re: Install fonts on MS Windows
@ 2023-09-24  5:50 Andres Conrado Montoya
  2023-09-24  8:04 ` Jean-Pierre Delange
  0 siblings, 1 reply; 10+ messages in thread
From: Andres Conrado Montoya @ 2023-09-24  5:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2586 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 3451 bytes --]

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* [NTG-context] Re: Install fonts on MS Windows
  2023-09-24  5:50 [NTG-context] Re: Install fonts on MS Windows Andres Conrado Montoya
@ 2023-09-24  8:04 ` Jean-Pierre Delange
  2023-09-24 10:26   ` Pablo Rodriguez
  0 siblings, 1 reply; 10+ messages in thread
From: Jean-Pierre Delange @ 2023-09-24  8:04 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 4223 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 7980 bytes --]

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* [NTG-context] Re: Install fonts on MS Windows
  2023-09-24  8:04 ` Jean-Pierre Delange
@ 2023-09-24 10:26   ` Pablo Rodriguez
  0 siblings, 0 replies; 10+ messages in thread
From: Pablo Rodriguez @ 2023-09-24 10:26 UTC (permalink / raw)
  To: ntg-context

On 9/24/23 10:04, Jean-Pierre Delange wrote:
> […]
>  mtxrun --script cache --erase && mtxrun --generate
> […]
> 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 ...

I had the same problem on Linux, Jean-Pierre.

Before having the script to remove the cache as an option (at least, to
me), I manually deleted the contents of context/tex/temxf-cache/.

Rebuilding font cache hasn’t worked for me (most of the times), so I
came to the conclusion that generating the cache from the start worked
better for me.

The fonts installed in %WINDIR%\Fonts\ are fine. ConTeXt had a problem
adding the paths of these new fonts to its font database.

Just in case it might be clearer now,

Pablo
___________________________________________________________________________________
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
___________________________________________________________________________________

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

* [NTG-context] Re: Install fonts on MS Windows
  2023-09-23 18:37                         ` Jean-Pierre Delange
@ 2023-09-23 18:56                           ` Wolfgang Schuster
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2023-09-23 18:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Jean-Pierre Delange

Jean-Pierre Delange schrieb am 23.09.2023 um 20:37:
> Thanks to Pablo, Hraban and Wolfgang for their advice.
>
> Precisely, I've never had any problems before with installing 
> additional fonts for CTX with MS Windows : it usually "works".
>
> That's why I was wondering... So I'm going to put the extra fonts in 
> /texmf-fonts/fonts/data as Hraban advises.
>
> But to make a "set OSFONTDIR=c:\windows\fonts" is allways necessary I 
> presume (in order to make CTX able to use windows fonts) ?

The file mtxrun.lua contains the following check which sets default 
paths on Windows and Mac when no value for OSFONTDIR is set.

do
  local osfontdir=osgetenv("OSFONTDIR")
  if osfontdir and osfontdir~="" then
  elseif osname=="windows" then
   ossetenv("OSFONTDIR","c:/windows/fonts//")
  elseif osname=="macosx" then
ossetenv("OSFONTDIR","$HOME/Library/Fonts//;/Library/Fonts//;/System/Library/Fonts//")
  end
end

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* [NTG-context] Re: Install fonts on MS Windows
  2023-09-23 18:30                       ` Jean-Pierre Delange
@ 2023-09-23 18:42                         ` Henning Hraban Ramm
  0 siblings, 0 replies; 10+ messages in thread
From: Henning Hraban Ramm @ 2023-09-23 18:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 23.09.23 um 20:30 schrieb Jean-Pierre Delange:
> Dear Hraban,
> 
> Even the general command to show all installed fonts :
> 
> mtxrun --script fonts --list --all
> 
> doesn't show the new fonts. I didn't use mtxrun --script font --reload 
> --force
> 
> I'll install fonts in /texmf-fonts/fonts/data/ directory as you say.

Well, I don’t know if it will work if the OS font dir didn’t.

> Is it a good trick to create separate OTF and TTF etc. directories ?

It’s not necessary. In 8bit times it made sense to separate metrics, 
outlines, mappings and stuff, but since OpenType fonts (.ttf or .otf 
doesn’t matter) contain everything, just order them as you like.

According to TDS, a folder below fonts is expected, so Hans suggested 
"data", but you can use ttf, otf or wtf. Below that, you can use more 
folders to keep an overview.

Hraban
___________________________________________________________________________________
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
___________________________________________________________________________________

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

* [NTG-context] Re: Install fonts on MS Windows
  2023-09-23 18:15                       ` Wolfgang Schuster
@ 2023-09-23 18:37                         ` Jean-Pierre Delange
  2023-09-23 18:56                           ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Jean-Pierre Delange @ 2023-09-23 18:37 UTC (permalink / raw)
  To: ntg-context

Thanks to Pablo, Hraban and Wolfgang for their advice.

Precisely, I've never had any problems before with installing additional 
fonts for CTX with MS Windows : it usually "works".

That's why I was wondering... So I'm going to put the extra fonts in 
/texmf-fonts/fonts/data as Hraban advises.

But to make a "set OSFONTDIR=c:\windows\fonts" is allways necessary I 
presume (in order to make CTX able to use windows fonts) ?

Many thanks !

JP


Le 23/09/2023 à 20:15, Wolfgang Schuster a écrit :
> Henning Hraban Ramm schrieb am 23.09.2023 um 20:05:
>> Am 23.09.23 um 14:40 schrieb Jean-Pierre Delange:
>>> Dear list,
>>> I have a very simple question, perhaps too simple...
>>> I've installed CTX on MSWindows x64, but I can't use the fonts I've 
>>> installed, despite the command: set 
>>> OSFONTDIR=c:\windows\fonts;c:\windows\users\adeimantos\context\texmf\fonts. 
>>>
>>
>> That should be ok.
>
> There is no need to set OSFONTDIR on Windows to get system fonts or 
> fonts which are placed in the local TeX directory in the home folder.
>
> Wolfgang
>
> ___________________________________________________________________________________ 
>
> 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
Professeur Agrégé de Philosophie (HC)

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* [NTG-context] Re: Install fonts on MS Windows
  2023-09-23 18:05                     ` Henning Hraban Ramm
  2023-09-23 18:15                       ` Wolfgang Schuster
@ 2023-09-23 18:30                       ` Jean-Pierre Delange
  2023-09-23 18:42                         ` Henning Hraban Ramm
  1 sibling, 1 reply; 10+ messages in thread
From: Jean-Pierre Delange @ 2023-09-23 18:30 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2124 bytes --]

Dear Hraban,

Even the general command to show all installed fonts :

mtxrun --script fonts --list --all

doesn't show the new fonts. I didn't use mtxrun --script font --reload 
--force

I'll install fonts in /texmf-fonts/fonts/data/ directory as you say.

Is it a good trick to create separate OTF and TTF etc. directories ?

Merci beaucoup !

JP


Le 23/09/2023 à 20:05, Henning Hraban Ramm a écrit :
> Am 23.09.23 um 14:40 schrieb Jean-Pierre Delange:
>> Dear list,
>> I have a very simple question, perhaps too simple...
>> I've installed CTX on MSWindows x64, but I can't use the fonts I've 
>> installed, despite the command: set 
>> OSFONTDIR=c:\windows\fonts;c:\windows\users\adeimantos\context\texmf\fonts.
>
> That should be ok.
>
>> I cleared the Windows font cache, restarted the machine, then 
>> reloaded with the command :
>> mtxrun --script fonts --reload
>
> That should be enough. Maybe try
> mtxrun --script font --reload --force
> I need that regularly for cambria.ttc to work (on OSX).
>
>> A search for the fonts I had installed (theano didot and gfs didot) 
>> gave no results with :
>>
>> mtxrun --script fonts --list --pattern=*gfs* --all.
>
> The pattern doesn’t need jokers. Did you try without?
>
>> I admit that I don't know in which directory it is best to install 
>> the fonts for optimum performance.
>
> If you need the fonts also for other programs, the OS directory is 
> good, otherwise <ConTeXt installation 
> directory>/texmf-fonts/fonts/data/ is recommended.
>
> Hraban
> ___________________________________________________________________________________ 
>
> 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
Professeur Agrégé de Philosophie (HC)

[-- Attachment #1.2: Type: text/html, Size: 3724 bytes --]

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* [NTG-context] Re: Install fonts on MS Windows
  2023-09-23 18:05                     ` Henning Hraban Ramm
@ 2023-09-23 18:15                       ` Wolfgang Schuster
  2023-09-23 18:37                         ` Jean-Pierre Delange
  2023-09-23 18:30                       ` Jean-Pierre Delange
  1 sibling, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2023-09-23 18:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Henning Hraban Ramm

Henning Hraban Ramm schrieb am 23.09.2023 um 20:05:
> Am 23.09.23 um 14:40 schrieb Jean-Pierre Delange:
>> Dear list,
>> I have a very simple question, perhaps too simple...
>> I've installed CTX on MSWindows x64, but I can't use the fonts I've 
>> installed, despite the command: set 
>> OSFONTDIR=c:\windows\fonts;c:\windows\users\adeimantos\context\texmf\fonts. 
>>
>
> That should be ok.

There is no need to set OSFONTDIR on Windows to get system fonts or 
fonts which are placed in the local TeX directory in the home folder.

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* [NTG-context] Re: Install fonts on MS Windows
  2023-09-23 12:40                   ` [NTG-context] Install fonts on MS Windows Jean-Pierre Delange
  2023-09-23 17:15                     ` [NTG-context] " Pablo Rodriguez
@ 2023-09-23 18:05                     ` Henning Hraban Ramm
  2023-09-23 18:15                       ` Wolfgang Schuster
  2023-09-23 18:30                       ` Jean-Pierre Delange
  1 sibling, 2 replies; 10+ messages in thread
From: Henning Hraban Ramm @ 2023-09-23 18:05 UTC (permalink / raw)
  To: ntg-context

Am 23.09.23 um 14:40 schrieb Jean-Pierre Delange:
> Dear list,
> I have a very simple question, perhaps too simple...
> I've installed CTX on MSWindows x64, but I can't use the fonts I've 
> installed, despite the command: set 
> OSFONTDIR=c:\windows\fonts;c:\windows\users\adeimantos\context\texmf\fonts.

That should be ok.

> I cleared the Windows font cache, restarted the machine, then reloaded 
> with the command :
> mtxrun --script fonts --reload

That should be enough. Maybe try
mtxrun --script font --reload --force
I need that regularly for cambria.ttc to work (on OSX).

> A search for the fonts I had installed (theano didot and gfs didot) gave 
> no results with :
> 
> mtxrun --script fonts --list --pattern=*gfs* --all.

The pattern doesn’t need jokers. Did you try without?

> I admit that I don't know in which directory it is best to install the 
> fonts for optimum performance.

If you need the fonts also for other programs, the OS directory is good, 
otherwise <ConTeXt installation directory>/texmf-fonts/fonts/data/ is 
recommended.

Hraban
___________________________________________________________________________________
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
___________________________________________________________________________________

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

* [NTG-context] Re: Install fonts on MS Windows
  2023-09-23 12:40                   ` [NTG-context] Install fonts on MS Windows Jean-Pierre Delange
@ 2023-09-23 17:15                     ` Pablo Rodriguez
  2023-09-23 18:05                     ` Henning Hraban Ramm
  1 sibling, 0 replies; 10+ messages in thread
From: Pablo Rodriguez @ 2023-09-23 17:15 UTC (permalink / raw)
  To: ntg-context

On 9/23/23 14:40, Jean-Pierre Delange wrote:
> Dear list,
> I have a very simple question, perhaps too simple...
> I've installed CTX on MSWindows x64, but I can't use the fonts I've
> installed, despite the command: set
> OSFONTDIR=c:\windows\fonts;c:\windows\users\adeimantos\context\texmf\fonts.

Dear Jean-Pierre,

only if you don’t have no way to install fonts on the OS directory for
fonts (%WINDIR%\Fonts in Windows), I would use (in that order):

  1. %USERPROFILE%\texmf\texmf-fonts\, or as last option
  2. [context-dir]\tex\texmf-local\texmf-fonts\

Excuse me if this is obvious to you, %USERPROFILE% is a Windows variable
(Windows variables, once defined, are invoked enclosed in percent signs
[such as in %variable%] and they are case-insensitive).

%USERPROFILE% in Windows is $HOME in Unix.

[context-dir] is no variable. It means the path were you have your
ConTeXt distribution installed (in case you have a ConTeXt only
distribution, and not TeX Live installed [I mean, a full text distribution).

BTW, do you really have a directory C:\Windows\Users\adeimantos? Sorry,
but I think it reads C:\Users\adeimantos (actually, this would be the
value of the Windows variable %USERPROFILE% when you are logged in).

[More on Windows variables, https://ss64.com/nt/syntax-variables.html.]

> I cleared the Windows font cache, restarted the machine, then reloaded
> with the command :
> mtxrun --script fonts --reload

I think it is better the following:

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

It erases the whole cache, which will be generated in your next ConTeXt run.

> A search for the fonts I had installed (theano didot and gfs didot) gave
> no results with :
>
> mtxrun --script fonts --list --pattern=*gfs* --all.

I think this would do the trick. Compile the following source:

  \mainlanguage[agr]
  \definefontfamily[mainface][rm][GFS Didot]
  \definefontfamily[mainface][ss][Theano Didot]
  \setupbodyfont[mainface]
  \starttext
  \doloopoverlist{\tf, \it, \bf, \bi}
    {\recursestring\input aristotle-grc\par}

  \ss\input aristotle-grc
  \stoptext

So you will see whether ConTeXt is able to read the fonts or not (if
they are embedded in the output PDF document or not).

> I admit that I don't know in which directory it is best to install the
> fonts for optimum performance.

If you install the fonts in %WINDIR%\Fonts (Windows font directory), the
will be available for any program. In some cases, this is important,
even when using only with ConTeXt.

If you need only in TeX, %USERPROFILE%\texmf\texmf-fonts\ would be a
good option.

But even if you choose the third option above (numbered as two), you
don’t need to set the OSFONTDIR variable.

On Windows and macOS, the OS font directory is set by ConTeXt itself.
The other two directories are also defined.

BTW, where have you copied both fonts?

Just in case it might help,

Pablo
___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2023-09-24 10:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-24  5:50 [NTG-context] Re: Install fonts on MS Windows Andres Conrado Montoya
2023-09-24  8:04 ` Jean-Pierre Delange
2023-09-24 10:26   ` Pablo Rodriguez
  -- strict thread matches above, loose matches on Subject: below --
2023-09-21 13:31 [NTG-context] Toggling the symbol for the zero-width joiner and related Unicode control characters Hamid,Idris
2023-09-21 14:52 ` [NTG-context] " Hans Hagen
2023-09-21 20:53   ` Hamid,Idris
2023-09-21 21:29     ` Hans Hagen
2023-09-22  4:16       ` Hamid,Idris
2023-09-22  9:53         ` Hans Hagen via ntg-context
2023-09-22 12:39           ` Hamid,Idris
2023-09-22 13:15             ` Hans Hagen
2023-09-22 13:51               ` Hamid,Idris
2023-09-22 16:44                 ` Hans Hagen via ntg-context
2023-09-23 12:40                   ` [NTG-context] Install fonts on MS Windows Jean-Pierre Delange
2023-09-23 17:15                     ` [NTG-context] " Pablo Rodriguez
2023-09-23 18:05                     ` Henning Hraban Ramm
2023-09-23 18:15                       ` Wolfgang Schuster
2023-09-23 18:37                         ` Jean-Pierre Delange
2023-09-23 18:56                           ` Wolfgang Schuster
2023-09-23 18:30                       ` Jean-Pierre Delange
2023-09-23 18:42                         ` Henning Hraban Ramm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).