
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 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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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?
Best,
Denis
Von: Maier, Denis Christian (UB)
Gesendet: Dienstag, 20. Mai 2025 14:36
An: mailing list for ConTeXt users

On 5/26/2025 11:08 AM, denis.maier@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
*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
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 -----------------------------------------------------------------

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
Gesendet: Mittwoch, 28. Mai 2025 14:29 An: denis.maier@unibe.ch; mailing list for ConTeXt users Cc: Hans Hagen Betreff: [NTG-context] Re: K with combining macron below On 5/26/2025 11:08 AM, denis.maier@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
*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
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 ___________________________________________________________________ ________________

On 5/28/2025 2:51 PM, Denis Maier via ntg-context wrote:
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?
only a little more font initialization time 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 -----------------------------------------------------------------
participants (4)
-
denis.maier@unibe.ch
-
denismaier@mailbox.org
-
Hans Hagen
-
Hans Hagen