Re: [NTG-context] contextual alternates
On 1/25/2015 3:52 PM, Jan Tosovsky wrote:
On 2015-01-25 Hans Hagen wrote:
On 1/24/2015 2:12 PM, Pablo Rodriguez wrote:
I have the following sample:
\definefontfeature[default][default][script=latn, calt=yes] \definefontfamily[mainface][serif][Pecita] \setupbodyfont[mainface] \starttext \input zapf \stoptext
The Pecita font is licensed under the Open Font License and it can be downloaded at http://pecita.eu/b/Pecita.otf.
For some strange reason, the contextual alternates feature isn’t working.
maybe they depend on other features being set
There are lots of definitions in calt table, but referenced via 'lookup' mechanism.
lookup calt5 { # sub @calt30' @calt30' by [a.I_ ... f_dotlessi._I]; } calt5;
language ENG ; # English script DFLT; lookup calt5;
To me it is quite unusual.
so the script / language combination is default / english (dflt/eng) ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On 01/25/2015 05:20 PM, Hans Hagen wrote:
On 1/25/2015 3:52 PM, Jan Tosovsky wrote:
On 2015-01-25 Hans Hagen wrote:
On 1/24/2015 2:12 PM, Pablo Rodriguez wrote:
[...] The Pecita font is licensed under the Open Font License and it can be downloaded at http://pecita.eu/b/Pecita.otf.
For some strange reason, the contextual alternates feature isn’t working.
maybe they depend on other features being set
There are lots of definitions in calt table, but referenced via 'lookup' mechanism.
lookup calt5 { # sub @calt30' @calt30' by [a.I_ ... f_dotlessi._I]; } calt5;
language ENG ; # English script DFLT; lookup calt5;
To me it is quite unusual.
so the script / language combination is default / english (dflt/eng)
Many thanks for your replies, Hans and Jan. I’m afraid that the following doesn’t work: \definefontfeature[default][default][script=latn,language=eng, calt=yes] \definefontfamily[mainface][rm][Pecita] \setupbodyfont[mainface] \starttext \input zapf \stoptext Many thanks for your help, Pablo -- http://www.ousia.tk
On 1/25/2015 7:30 PM, Pablo Rodriguez wrote:
On 01/25/2015 05:20 PM, Hans Hagen wrote:
On 1/25/2015 3:52 PM, Jan Tosovsky wrote:
On 2015-01-25 Hans Hagen wrote:
On 1/24/2015 2:12 PM, Pablo Rodriguez wrote:
[...] The Pecita font is licensed under the Open Font License and it can be downloaded at http://pecita.eu/b/Pecita.otf.
For some strange reason, the contextual alternates feature isn’t working.
maybe they depend on other features being set
There are lots of definitions in calt table, but referenced via 'lookup' mechanism.
lookup calt5 { # sub @calt30' @calt30' by [a.I_ ... f_dotlessi._I]; } calt5;
language ENG ; # English script DFLT; lookup calt5;
To me it is quite unusual.
so the script / language combination is default / english (dflt/eng)
Many thanks for your replies, Hans and Jan.
I’m afraid that the following doesn’t work:
\definefontfeature[default][default][script=latn,language=eng, calt=yes]
because it's dflt (default) and not latn
\definefontfamily[mainface][rm][Pecita] \setupbodyfont[mainface] \starttext \input zapf \stoptext
Many thanks for your help,
Pablo
-- ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On 01/26/2015 10:04 AM, Hans Hagen wrote:
On 1/25/2015 7:30 PM, Pablo Rodriguez wrote:
[...] I’m afraid that the following doesn’t work:
\definefontfeature[default][default][script=latn,language=eng, calt=yes]
because it's dflt (default) and not latn
Many thanks for your reply, Hans. I tested both options (script=latn and script=dflt) and neither worked. Pablo
\definefontfamily[mainface][rm][Pecita] \setupbodyfont[mainface] \starttext \input zapf \stoptext
On 1/26/2015 10:18 AM, Pablo Rodriguez wrote:
On 01/26/2015 10:04 AM, Hans Hagen wrote:
On 1/25/2015 7:30 PM, Pablo Rodriguez wrote:
[...] I’m afraid that the following doesn’t work:
\definefontfeature[default][default][script=latn,language=eng, calt=yes]
because it's dflt (default) and not latn
Many thanks for your reply, Hans.
I tested both options (script=latn and script=dflt) and neither worked.
what happens when you enable all the features that the font provides ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On 01/26/2015 10:59 AM, Hans Hagen wrote:
On 1/26/2015 10:18 AM, Pablo Rodriguez wrote:
[...] I tested both options (script=latn and script=dflt) and neither worked.
what happens when you enable all the features that the font provides
"\definefontfeature[default][default][aalt=yes]" works as expected (even if I add dflt or latn script). But these are all features. The weird thing to me is that FontForge displays calt right. Many thanks for your help, Pablo -- http://www.ousia.tk
participants (2)
-
Hans Hagen
-
Pablo Rodriguez