ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Using project-local fonts
@ 2023-04-13 12:06 Kalouguine Andre via ntg-context
  2023-04-13 14:32 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 8+ messages in thread
From: Kalouguine Andre via ntg-context @ 2023-04-13 12:06 UTC (permalink / raw)
  To: ntg-context; +Cc: Kalouguine Andre


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

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

end of thread, other threads:[~2023-04-13 20:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-13 12:06 [NTG-context] Using project-local fonts Kalouguine Andre via ntg-context
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

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).