Thanks,. Hans!

That doesn't change the slightly off-placed bar, but now I can use the 
character with the precomposed bar. Interesting... (This also looks not 
perfect, but much better than the version with the combining character.)

Has using \definefontfeature[default][default][compose=yes] any downsides, 
unwanted side-effects?

Best,
Denis

> -----Ursprüngliche Nachricht-----
> Von: Hans Hagen via ntg-context <ntg-context@ntg.nl>
> Gesendet: Mittwoch, 28. Mai 2025 14:29
> An: denis.ma...@unibe.ch; mailing list for ConTeXt users <ntg-context@ntg.nl>
> Cc: Hans Hagen <j.ha...@freedom.nl>
> Betreff: [NTG-context] Re: K with combining macron below
> 
> On 5/26/2025 11:08 AM, denis.ma...@unibe.ch wrote:
> > Just a quick follow up: Does anyone know how I could approach/solve
> > this problem? Or do I just have to wait for a font update?
> 
> maybe
> 
> \definefontfeature[default][default][compose=yes]
> 
> at the top of the file works
> 
> > Best,
> >
> > Denis
> >
> > *Von:*Maier, Denis Christian (UB)
> > *Gesendet:* Dienstag, 20. Mai 2025 14:36
> > *An:* mailing list for ConTeXt users <ntg-context@ntg.nl>
> > *Betreff:* K with combining macron below
> >
> > Hi,
> >
> > I’m trying to use a k with a bar/line below: ḵ. The problem is that my
> > font (Cardo) doesn’t seem to have this character in a precombined
> > version. So, I need to combine the letter with the combining macron
> > below: https://www.compart.com/en/unicode/U+0331 <https://
> > www.compart.com/en/unicode/U+0331>
> >
> > While this works with the default font, with Cardo the result looks
> > off, i.e., the macron is not placed centered under the letter, but
> > slightly to the right. How can I get the correct placement of the macron?
> >
> > Best,
> >
> > Denis
> >
> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >
> > \definefontfamily[cardo][rm][Cardo]
> >
> > \setupbodyfont[
> >
> >      mainface,
> >
> >      11pt,
> >
> >      ]
> >
> > \starttext
> >
> > {\em ḵabc} (with macron)
> >
> > {\em ḵabc} (with combining macron)
> >
> > \switchtobodyfont[cardo]
> >
> > {\em ḵabc} (with macron)
> >
> > {\em ḵabc} (with combining macron)
> >
> > {ḵabc} (with combining macron)
> >
> > \stoptext
> >
> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >
> >
> >
> ___________________________________________________________________
> ___
> > _____________ If your question is of interest to others as well,
> > please add an entry to the Wiki!
> >
> > maillist : ntg-context@ntg.nl /
> > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> > webpage  : https://www.pragma-ade.nl / https://context.aanhet.net
> > (mirror) archive  : https://github.com/contextgarden/context
> > wiki     : https://wiki.contextgarden.net
> >
> ___________________________________________________________________
> ___
> > _____________
> 
> 
> --
> 
> -----------------------------------------------------------------
>                                            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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) 
> archive  :
> https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
> ___________________________________________________________________
> ________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to