ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez <oinos@gmx.es>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: Install fonts on MS Windows
Date: Sat, 23 Sep 2023 19:15:00 +0200	[thread overview]
Message-ID: <68f67a4b-b903-f35d-2d1a-bf27e0c8601f@gmx.es> (raw)
In-Reply-To: <c8a95b61-e71b-e72d-ecff-cda521f069c9@free.fr>

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
___________________________________________________________________________________

  reply	other threads:[~2023-09-23 17:17 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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:03             ` Hans Hagen
2023-09-22 13:22               ` 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                     ` Pablo Rodriguez [this message]
2023-09-23 18:05                     ` [NTG-context] " 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
2023-09-23 19:14                   ` [NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters Hamid,Idris
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=68f67a4b-b903-f35d-2d1a-bf27e0c8601f@gmx.es \
    --to=oinos@gmx.es \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).