* move glyph vertically
@ 2022-12-22 11:54 Pablo Rodriguez via ntg-context
2022-12-22 12:18 ` Hans Hagen via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-12-22 11:54 UTC (permalink / raw)
To: ConTeXt users; +Cc: Pablo Rodriguez
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: move glyph vertically
2022-12-22 11:54 move glyph vertically Pablo Rodriguez via ntg-context
@ 2022-12-22 12:18 ` Hans Hagen via ntg-context
2022-12-22 13:13 ` Pablo Rodriguez via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen via ntg-context @ 2022-12-22 12:18 UTC (permalink / raw)
To: ntg-context; +Cc: Hans Hagen
On 12/22/2022 12:54 PM, Pablo Rodriguez via ntg-context wrote:
> 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,
typos
\definefontfeature[ktest][gpost_tes=yes]
and wrong feature name
\feature[+][gpos_test]
so:
\startluacode
fonts.handlers.otf.addfeature {
name = "gpos_test",
type = "single",
data = {
[ '¿' ] = { 0, 400 },
[ '¡' ] = { 0, 400 },
}
}
\stopluacode
\definefontfeature[ktest][gpos_test=yes]
\starttext
\startTEXpage[offset=1em]
\ruledhbox{¿? xx ¡!}
\addfeature{ktest}
\ruledhbox{¿? xx ¡!}
\stopTEXpage
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: move glyph vertically
2022-12-22 12:18 ` Hans Hagen via ntg-context
@ 2022-12-22 13:13 ` Pablo Rodriguez via ntg-context
0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-12-22 13:13 UTC (permalink / raw)
To: Hans Hagen via ntg-context; +Cc: Pablo Rodriguez
On 12/22/22 13:18, Hans Hagen via ntg-context wrote:
> On 12/22/2022 12:54 PM, Pablo Rodriguez via ntg-context wrote:
>> […]
>> Could anyone tell me how could I move vertically single glyphs?
>> […]
>
> so:
>
> \startluacode
> fonts.handlers.otf.addfeature {
> name = "gpos_test",
> type = "single",
> data = {
> [ '¿' ] = { 0, 400 },
> [ '¡' ] = { 0, 400 },
> }
> }
> \stopluacode
Many thanks for your fast reply and help, Hans.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-22 13:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-22 11:54 move glyph vertically Pablo Rodriguez via ntg-context
2022-12-22 12:18 ` Hans Hagen via ntg-context
2022-12-22 13:13 ` Pablo Rodriguez via ntg-context
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).