From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: Kalouguine Andre via ntg-context <ntg-context@ntg.nl>
Cc: Hans Hagen <j.hagen@xs4all.nl>
Subject: Re: [NTG-context] Using project-local fonts
Date: Thu, 13 Apr 2023 16:32:25 +0200 [thread overview]
Message-ID: <037a1404-8a93-d32c-8a94-9ce9c69f4434@xs4all.nl> (raw)
In-Reply-To: <640aa3e12d497a417564762e304bbc02@ens-lyon.fr>
On 4/13/2023 2:06 PM, Kalouguine Andre via ntg-context wrote:
> Hi,
>
> I'm writing a small report using EB Garamond as the main font. I am
> sometimes using Overleaf (which has a ConTeXt distribution that is
> accessible using a latexmkrc file).
i'm not familiar with that approach so can't see what interferes
> The problem is, the EB Garamond version that is included seems to have a
> bug: the c-t and s-t ligatures (and maybe others) are triggered when
> enabling `dlig` even though they are supposed to be in the `hlig`
> feature. I also would like to include the Hack font that isn't in the
> distribution.
> So, I'm looking for a way to embed the fonts into the project in a
> portable way instead of installing them in a system directory. Is there
> any way to do so ? The version of ConTeXt used is
here i just put all fonts in texmf-fonts/fonts/data
you can try to mix selectfont and regular typoescripts:
\usetypescriptfile[ebgaramond]
\definefontfamily [ebgaramond] [serif] [ebgaramond]
[features=eb-garamond-normal]
%definefontfamily [ebgaramond] [math] [Garamond-Math]
\definefontfamily [ebgaramond] [mono] [Hack] [tf=style:mono]
%definetypeface [ebgaramond] [ss] [sans] [ysabeau] [default]
\definetypeface [ebgaramond] [mm] [math] [ebgaramond] [default]
\setupbodyfont[ebgaramond,12pt]
\starttext
The most distinct sentence $x$.
\stoptext
as you probably also want proper math.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2023-04-13 14:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-13 12:06 Kalouguine Andre via ntg-context
2023-04-13 14:32 ` Hans Hagen via ntg-context [this message]
2023-04-13 15:28 ` Kalouguine Andre via ntg-context
2023-04-13 15:37 ` Hans Hagen via ntg-context
2023-04-13 19:22 ` Rik Kabel via ntg-context
2023-04-13 20:11 ` Kalouguine Andre via ntg-context
2023-04-13 20:33 ` Hans Hagen via ntg-context
2023-04-13 20:40 ` Hans Hagen via ntg-context
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=037a1404-8a93-d32c-8a94-9ce9c69f4434@xs4all.nl \
--to=ntg-context@ntg.nl \
--cc=j.hagen@xs4all.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).