From: Thangalin via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Thangalin <thangalin@gmail.com>
Subject: Re: C with macron
Date: Wed, 24 Aug 2022 18:11:47 -0700 [thread overview]
Message-ID: <CAANrE7rxbXG-nZVz_c3nTWvTHK2+CNp4insrhuRcgx5UhM370Q@mail.gmail.com> (raw)
In-Reply-To: <bec6c503-c18b-beda-2d0e-d880bda5f17e@freedom.nl>
[-- Attachment #1.1: Type: text/plain, Size: 1051 bytes --]
Here's an attempt with dynamic kerning based on the font, which eliminates
some of the tweaking needed. It's not perfect and, depending on the font, a
little work is needed. For pagella, scholas, termes, and a few other
default fonts, the results are decent.
%\setupbodyfont[pagella]
%\setupbodyfont[scholas]
\setupbodyfont[termes]
\starttext
\newbox\MacMBox
\setbox\MacMBox\hbox{M}
\newbox\MacCBox
\setbox\MacCBox\hbox{c}
\newbox\MacKernBox
\setbox\MacKernBox\hbox{\inframed[offset=\zeropoint, width=fit]{Mc}}
\def\MacDelta{\dimexpr\wd\MacKernBox-\wd\MacMBox-\wd\MacCBox\relax}
\def\MacUWidth{\dimexpr\wd\MacCBox-.75\MacDelta\relax}
\def\MacRule{\vrule width \MacUWidth height .03em depth \zeropoint \relax}
\def\MacKern{\dimexpr\wd\MacKernBox-\wd\MacMBox-\wd\MacCBox\relax}
\def\Mac{%
M{%
\dontleavehmode{\raisebox{\dimexpr\ht\MacMBox-\ht\MacCBox}\hbox{c}}%
\kern-1.04\MacUWidth
\MacRule
\kern.08\MacUWidth
}%
}
\scale[scale=5000]{\Mac Anulty}
\Mac Anulty
\stoptext
Thanks everyone!
[-- Attachment #1.2: Type: text/html, Size: 1415 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 prev parent reply other threads:[~2022-08-25 1:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-24 0:23 Thangalin via ntg-context
2022-08-24 6:47 ` Mikael Sundqvist via ntg-context
2022-08-24 7:35 ` Hans Hagen via ntg-context
2022-08-24 7:49 ` Thangalin via ntg-context
2022-08-24 8:01 ` Thangalin via ntg-context
2022-08-24 8:30 ` Hans Hagen via ntg-context
2022-08-24 15:42 ` Pablo Rodriguez via ntg-context
2022-08-24 16:11 ` Thangalin via ntg-context
2022-08-24 18:45 ` Pablo Rodriguez via ntg-context
2022-08-24 19:07 ` Hans Hagen via ntg-context
2022-08-25 1:11 ` Thangalin via ntg-context [this message]
2022-08-25 17:00 ` Pablo Rodriguez via ntg-context
2022-08-25 17:04 ` Hans Hagen via ntg-context
2022-08-25 18:01 ` Pablo Rodriguez via ntg-context
2022-08-25 18:17 ` 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=CAANrE7rxbXG-nZVz_c3nTWvTHK2+CNp4insrhuRcgx5UhM370Q@mail.gmail.com \
--to=ntg-context@ntg.nl \
--cc=thangalin@gmail.com \
/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).