ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mojca Miklavec" <mojca.miklavec.lists@gmail.com>
Cc: Adam Lindsay <atl@comp.lancs.ac.uk>, Will Robertson <wspr81@gmail.com>
Subject: \namedglyph (was: [XeTeX] \XeTeXglyphindex: just a short note)
Date: Sat, 12 Aug 2006 09:39:26 +0200	[thread overview]
Message-ID: <6faad9f00608120039u69e5ec51n8d43cf72c6eafa91@mail.gmail.com> (raw)

Hello,

Some time ago Jonathan implemented a new \XeTeXglyphindex command to
retrieve the glyph from current font by name (it currently only works
for OpenType, but that's the most important). \getglyph is already
taken, I used it in the example below just because I didn't think of a
better name.

Would it name sense to provide a \namedglyph macro in ConTeXt for
XeTeX users as well? (Hopefully the feature will be available in
pdfTeX as well ;)

I don't mind if LaTeX & ConTeXt use the same syntax every now and then ;)

(In the future: It might make sense to provide an optional field to
retrieve a glyph from any font, not just from the current one, but I'm
not sure about what the exact interface should be and if it would be
optional it can be added later anyway.)

Any thoughts?

Mojca

On 8/12/06, Will Robertson wrote:
> On 11/06/2006, at 21:09 , Mojca Miklavec wrote:
>
> > \def\getglyph#1{\XeTeXglyph\XeTeXglyphindex "#1"}
> > \font\A='Antykwa Torunska' \A
> >
> > Thank you, Jonathan, I \getglyph{heart} this new feature!
>
> Just to follow up on this; for LaTeX users, the new version of the
> xltxtra package will include this macro under the name
> "\namedglyph" (it's actually Jonathan's improved version).
>
> Cheers,
>
> Will

             reply	other threads:[~2006-08-12  7:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-12  7:39 Mojca Miklavec [this message]
2006-08-12 19:00 ` 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=6faad9f00608120039u69e5ec51n8d43cf72c6eafa91@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=atl@comp.lancs.ac.uk \
    --cc=ntg-context@ntg.nl \
    --cc=wspr81@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).