request for a quick & dirty hack: shift accents in compose=yes
Hello, I'm using a feature "compose=yes" \definefontfeature [default] [liga=yes,kern=yes,tlig=yes,compose=yes] in a handwritten font to get ccarons (font SnellRoundhandLTStd-Scr.otf). However the carons are placed way off to the right due to the nature of handwritten font. Is there any simple, very-quick-and-dirty way to fix ConTeXt sources (I need it very soon), so that carons would be placed a bit more to the left? (I don't mind to do it just for this single document and then forget about it?) Thanks a lot, Mojca
Answering myself: I ended up using
c\kern-7pt\hbox to 0pt{\textcaron\hss}\kern7pt
but it would be nice to add some options to allow fixing fonts on a
slightly more user-friendly level.
(Hans already started writing some hooks to adjust accent height, but
it would be nice to finish it, so that it could be applied to other
exotic fonts.)
Mojca
On Fri, May 20, 2011 at 21:25, Mojca Miklavec
Hello,
I'm using a feature "compose=yes"
\definefontfeature [default] [liga=yes,kern=yes,tlig=yes,compose=yes]
in a handwritten font to get ccarons (font SnellRoundhandLTStd-Scr.otf). However the carons are placed way off to the right due to the nature of handwritten font.
Is there any simple, very-quick-and-dirty way to fix ConTeXt sources (I need it very soon), so that carons would be placed a bit more to the left? (I don't mind to do it just for this single document and then forget about it?)
Thanks a lot, Mojca
On Fri, 20 May 2011, Mojca Miklavec wrote:
(Hans already started writing some hooks to adjust accent height, but it would be nice to finish it, so that it could be applied to other exotic fonts.)
http://xkcd.com/619/ :) Aditya
Answering myself: I ended up using c\kern-7pt\hbox to 0pt{\textcaron\hss}\kern7pt but it would be nice to add some options to allow fixing fonts on a slightly more user-friendly level.
And what do you expect the user interface to look like? You're going to need to add information in the font for each relevant glyph or glyph pairs; it's a little bit like using a macro to adjust accent placement at that point. Arthur
On 21-5-2011 12:52, Arthur Reutenauer wrote:
Answering myself: I ended up using c\kern-7pt\hbox to 0pt{\textcaron\hss}\kern7pt but it would be nice to add some options to allow fixing fonts on a slightly more user-friendly level.
And what do you expect the user interface to look like? You're going to need to add information in the font for each relevant glyph or glyph pairs; it's a little bit like using a macro to adjust accent placement at that point.
actually there is a goodie that permits this (see lucida-one.lfg) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Aditya Mahajan
-
Arthur Reutenauer
-
Hans Hagen
-
Mojca Miklavec