From: Kalouguine Andre via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Kalouguine Andre <andre.kalouguine@ens-lyon.fr>
Subject: [NTG-context] Using project-local fonts
Date: Thu, 13 Apr 2023 14:06:18 +0200 [thread overview]
Message-ID: <640aa3e12d497a417564762e304bbc02@ens-lyon.fr> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1266 bytes --]
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).
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
ConTeXt ver: 2021.03.05 19:11 MKIV fmt: 2023.4.13 int:
english/english
Here is a small MWE:
output.tex```
\definefontfeature
[myfontfeature]
[default][
liga=yes,
tlig=yes,
dlig=yes,
hlig=no,
]
\definefontfamily [ebgaramond] [serif] [ebgaramond]
[features=myfontfeature]
\definefontfamily [ebgaramond] [math] [Garamond-Math]
\definefontfamily [ebgaramond] [mono] [Hack] [tf = style:mono]
\setupbodyfont[ebgaramond,12pt]
\starttext
The most distict sentence.
\stoptext
```
latexmkrc```
$latex = 'ls /;context --luatex --synctex --batchmode %S'
```
--
Kalouguine Andre
[-- Attachment #1.2: Type: text/html, Size: 3379 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 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
___________________________________________________________________________________
next reply other threads:[~2023-04-13 12:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-13 12:06 Kalouguine Andre via ntg-context [this message]
2023-04-13 14:32 ` Hans Hagen via ntg-context
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=640aa3e12d497a417564762e304bbc02@ens-lyon.fr \
--to=ntg-context@ntg.nl \
--cc=andre.kalouguine@ens-lyon.fr \
/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).