From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Oddity: \buildtextaccent shifts glyph right
Date: Sun, 6 Sep 2015 18:20:22 +0200 [thread overview]
Message-ID: <55EC67C6.1040603@uni-bonn.de> (raw)
In-Reply-To: <55EC5B7A.6060103@panix.com>
On 06.09.2015 17:27, Rik wrote:
> It seems that \buildtextaccent\textacute q (or \buildtextaccent´q) moves
> the q to the right within the character’s bounding box. The following
> example (and attached resulting pdf) demonstrates this. Lines 1 and 2
> show the string with and without the \buildtextaccent, and lines 4 and 6
> repeat that in italic. The strings are the same width, but the q is
> moved right. Lines 3 and 6 show a manual kerning of the q to improve
> appearance.
\buildtextaccent has to take some heuristics about horizontal and
vertical placement and is sometimes wrong about it. Since your case is
somewhat special, I would define a macro for the que symbol and adjust
the boxes manually - but then, you'll have to adapt it to italic and
upright (and bold) and different font sizes. Depends on how important
typographical beauty is to you - either a medium-quality solution for
all cases or better quality and manual fiddling... Something like
\definefontfamily [test] [serif] [ebgaramond]
\setupbodyfont [test,12pt]
\define\que%
{\bgroup
\setbox0\hbox{q}%
\setbox2\hbox to \wd0{\kern0.3em\switchtobodyfont[6pt] ʒ}%
\setbox4\hbox to \wd0{\kern0.1em\textacute}%
\hbox to \wd0 \bgroup
\hss\copy0\hss
\hskip-\wd0
\raise-0.45ex\copy2
\hskip-\wd0
\raise0.1ex\copy4
\egroup
\egroup\autoinsertnextspace}
\starttext
{\it Dicit\que mihi}
\stoptext
(btw, the example you sent uses Latin Modern).
Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2015-09-06 16:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-06 15:27 Rik
2015-09-06 15:52 ` Pablo Rodriguez
2015-09-06 16:48 ` Rik
2015-09-06 16:20 ` Thomas A. Schmitz [this message]
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=55EC67C6.1040603@uni-bonn.de \
--to=thomas.schmitz@uni-bonn.de \
--cc=ntg-context@ntg.nl \
/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).