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