% engine=luatex \starttext \installfontfeature[otf][verb] \definefontfeature [test][mode=node,language=dflt,script=latn,verb=yes,featurefile=verbose-digits.fea] \font\test=name:lmroman10regular*test at 20pt \test 1 2 3 4 \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
\font\test=name:lmroman10regular*test at 20pt
You probably want a hyphen here (lmroman10-regular); and it doesn't give the expected result for me although ConTeXt reports no error and verbose-digits.fea is found by luatools. When I turn tracing on I get the following reports: report >> define otf: initializing feature mode to node for mode base for font unknown report >> define otf: initializing feature language to dflt for mode node for font unknown report >> define otf: initializing feature script to latn for mode node for font unknown report >> define otf: initializing feature analyze to true for mode node for font unknown report >> define otf: installing feature handler analyze for mode node for font unknown Arthur
Arthur Reutenauer wrote:
\font\test=name:lmroman10regular*test at 20pt
You probably want a hyphen here (lmroman10-regular); and it doesn't give the expected result for me although ConTeXt reports no error and verbose-digits.fea is found by luatools.
no hyphen needed, name: will force mkiv to look up the font in its database and it's rather tolerant ... ignoring spaces, hyphens, completing cropped names etc
When I turn tracing on I get the following reports:
report >> define otf: initializing feature mode to node for mode base for font unknown report >> define otf: initializing feature language to dflt for mode node for font unknown report >> define otf: initializing feature script to latn for mode node for font unknown report >> define otf: initializing feature analyze to true for mode node for font unknown report >> define otf: installing feature handler analyze for mode node for font unknown
yes, i have to look into that. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Arthur Reutenauer wrote:
and it doesn't give the expected result
Oops, sorry; forget I said anything ;-) It works fine, and it's great!
ah, good ... i was wondering if we could use this trick to extend some older fonts, for instance chinese fonts with halfwidth variants and such; we only need (shared) fea file then Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Arthur Reutenauer
-
Hans Hagen