ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
To: ConTeXt users <ntg-context@ntg.nl>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: move glyph vertically
Date: Thu, 22 Dec 2022 12:54:35 +0100	[thread overview]
Message-ID: <a791b4df-b6b5-bc4d-f705-d150cfdffae7@gmx.es> (raw)

Dear list,

I have the following sample:

  \startluacode
       fonts.handlers.otf.addfeature {
           name = "gpos_test",
           type = "single",
           data = {
                 [ '¿' ] = 1000,
                 [ '¡' ] = 1000,
           }
       }
  \stopluacode
  \definefontfeature[ktest][gpost_tes=yes]

  \starttext
  \startTEXpage[offset=1em]
  \feature[+][gpos_test]
  ¿? ¡!
  \stopTEXpage
  \stoptext

This tries to move vertically the opening question and exclamation
marks, so they are at the same height that its closing counterparts.

I thought there may be a GPOS feature that could achieve this, but I
must admit I have no idea about how to achive it.

In my document, this should only work with the slanted feature.

Could anyone tell me how could I move vertically single glyphs?

Many thanks for your help,

Pablo
___________________________________________________________________________________
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
___________________________________________________________________________________

             reply	other threads:[~2022-12-22 11:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-22 11:54 Pablo Rodriguez via ntg-context [this message]
2022-12-22 12:18 ` Hans Hagen via ntg-context
2022-12-22 13:13   ` Pablo Rodriguez 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=a791b4df-b6b5-bc4d-f705-d150cfdffae7@gmx.es \
    --to=ntg-context@ntg.nl \
    --cc=oinos@gmx.es \
    /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).