ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Adam Lindsay <atl@comp.lancs.ac.uk>
Subject: Re: extra space after  variant
Date: Fri, 02 Dec 2005 19:22:58 +0000	[thread overview]
Message-ID: <43909F12.2000709@comp.lancs.ac.uk> (raw)
In-Reply-To: <439093D7.6060406@elvenkind.com>

Taco Hoekwater wrote:

> I can't get the example to compile. Whatever I do, context insists
> on creating SerifRegular.tfm through mktextfm (sigh). I'm too lazy
> to figure out what is going on right now, so can someone create a
> full minimal example, please? I'd like to check this with all
> tracing on, because it hints are a problem deeper down somewhere.

I hope you're caught up with your fonts. Variants aren't defined with 
many, but they are here:

\definetypeface[a][rm][serif][antykwa-torunska][default][encoding=texnansi]
\definetypeface[a][tt][mono][modern][default][encoding=texnansi]
\setupbodyfont [a]
\starttext
\startbuffer
abc {x\variant[sc]\space pqr} abc {\variant[sc]pqr}\crlf
{\it abc {\variant[sc]\space pqr} abc {\variant[sc]pqr}}\crlf % dbl spc 
only here
{\bf abc {\variant[sc] pqr} abc {\variant[sc]pqr}}\crlf
{\bi abc {\variant[sc]{x} pqr} abc {\variant[sc]pqr}}\crlf
\stopbuffer
\typebuffer \getbuffer

\def\ignoreimplicitspaces
  {\doifnextcharelse\relax\relax\relax}
\def\variant[#1]% slow
   {\dosetscaledfont
    \expanded{\definedfont% Careful about email wrapping here!
 
[\truefontname{\fontstringA\fontstylesuffix\fontvariant\fontstringA{#1}}
         at \scaledfont]}\ignoreimplicitspaces}

\getbuffer
\stoptext


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
  Lancaster University, InfoLab21        +44(0)1524/510.514
  Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  reply	other threads:[~2005-12-02 19:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-01 14:04 Hans van der Meer
2005-12-02 13:57 ` Hans Hagen
2005-12-02 18:35   ` Taco Hoekwater
2005-12-02 19:22     ` Adam Lindsay [this message]
2005-12-02 20:13       ` Taco Hoekwater
2005-12-04 21:03     ` Hans Hagen
2005-12-05 12:36       ` Adam Lindsay
2005-12-02 18:48   ` Adam Lindsay
2005-12-04 21:05     ` Hans Hagen

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=43909F12.2000709@comp.lancs.ac.uk \
    --to=atl@comp.lancs.ac.uk \
    --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).