Hi Wolfgang, Hans, Wolfgang Schuster wrote:
\definefontfeature[latin-default] [default] [script=latn,expansion=quality,protrusion=pure] \definefontfeature[latin-smallcaps][smallcaps][script=latn,expansion=quality,protrusion=pure] \definefontfeature[latin-oldstyle] [oldstyle] [script=latn,expansion=quality,protrusion=pure]
It seems life would be easier if we would have a way to push merged feature settings downward, something like this: \definefontfeature [plushz] % no inheritance, on purpose ! [expansion=quality] \definetypeface [][][][][][extrafeatures=plushz] That would then be functionally equivalent to \definefontfeature [plushz] % no inheritance, on purpose ! [expansion=quality] \definefontfeature [<xxx>] [plushz] \definetypeface [][][][][] for any <xxx> that is set up by the \definefontsynonyms. Best wishes, Taco
Taco Hoekwater wrote:
Hi Wolfgang, Hans,
Wolfgang Schuster wrote:
\definefontfeature[latin-default] [default] [script=latn,expansion=quality,protrusion=pure] \definefontfeature[latin-smallcaps][smallcaps][script=latn,expansion=quality,protrusion=pure] \definefontfeature[latin-oldstyle] [oldstyle] [script=latn,expansion=quality,protrusion=pure]
It seems life would be easier if we would have a way to push merged feature settings downward, something like this:
\definefontfeature [plushz] % no inheritance, on purpose ! [expansion=quality] \definetypeface [][][][][][extrafeatures=plushz]
That would then be functionally equivalent to
\definefontfeature [plushz] % no inheritance, on purpose ! [expansion=quality] \definefontfeature [<xxx>] [plushz] \definetypeface [][][][][]
for any <xxx> that is set up by the \definefontsynonyms.
features={a,b,c,d} ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Hans Hagen wrote:
Taco Hoekwater wrote:
Hi Wolfgang, Hans,
Wolfgang Schuster wrote:
\definefontfeature[latin-default] [default] [script=latn,expansion=quality,protrusion=pure] \definefontfeature[latin-smallcaps][smallcaps][script=latn,expansion=quality,protrusion=pure]
\definefontfeature[latin-oldstyle] [oldstyle] [script=latn,expansion=quality,protrusion=pure]
It seems life would be easier if we would have a way to push merged feature settings downward, something like this:
\definefontfeature [plushz] % no inheritance, on purpose ! [expansion=quality] \definetypeface [][][][][][extrafeatures=plushz]
That would then be functionally equivalent to
\definefontfeature [plushz] % no inheritance, on purpose ! [expansion=quality] \definefontfeature [<xxx>] [plushz] \definetypeface [][][][][]
for any <xxx> that is set up by the \definefontsynonyms.
features={a,b,c,d}
But that doesnt help unless it happens automaticallly. Somewhere down in the typescript there is a: \definefontsynonym [SansCaps] [Sans] [features=smallcaps] and currently to have expansion added to that font you have to redefine the font synonyms one way or another, either via \definefontfeature[hz-smallcaps][smallcaps][expansion=quality] ... \definefontsynonym [SansCaps] [Sans] [features=hz-smallcaps] or via \definefontfeature[plushz][expansion=quality] ... \definefontsynonym [SansCaps] [Sans] [features={smallcaps,plushz}] but in both cases quite a lot of lines have to be redone. If MKIV would allow \definetypeface [][][][][][extrafeatures=plushz] so that the font synonym would then automatically be interpreted as \definefontsynonym [SansCaps] [Sans] [features={smallcaps,plushz}] that would be useful (i think so, at least) Best wishes, Taco
Taco Hoekwater wrote:
But that doesnt help unless it happens automaticallly. Somewhere down in the typescript there is a:
\definefontsynonym [SansCaps] [Sans] [features=smallcaps]
and currently to have expansion added to that font you have to redefine the font synonyms one way or another, either via
\definefontfeature[hz-smallcaps][smallcaps][expansion=quality] ... \definefontsynonym [SansCaps] [Sans] [features=hz-smallcaps]
or via
\definefontfeature[plushz][expansion=quality] ... \definefontsynonym [SansCaps] [Sans] [features={smallcaps,plushz}]
but in both cases quite a lot of lines have to be redone.
If MKIV would allow
\definetypeface [][][][][][extrafeatures=plushz]
so that the font synonym would then automatically be interpreted as
\definefontsynonym [SansCaps] [Sans] [features={smallcaps,plushz}]
that would be useful (i think so, at least)
sure, but then we need an extraextraextrafeatures later, so i'd rather ponder about an extendable solution; kind of \definefontfeature[extras][] \definefontfeature[plushz][expansion=quality] \definefontfeature[extras][plushz] \definefontsynonym [SansCaps] [Sans] [features={smallcaps,extras}] anyhow, the whole feature support is somewhat floating and will be extended anyway 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 -----------------------------------------------------------------
Hans Hagen wrote:
Taco Hoekwater wrote:
But that doesnt help unless it happens automaticallly. Somewhere down in the typescript there is a:
\definefontsynonym [SansCaps] [Sans] [features=smallcaps]
and currently to have expansion added to that font you have to redefine the font synonyms one way or another, either via
\definefontfeature[hz-smallcaps][smallcaps][expansion=quality] ... \definefontsynonym [SansCaps] [Sans] [features=hz-smallcaps]
or via
\definefontfeature[plushz][expansion=quality] ... \definefontsynonym [SansCaps] [Sans] [features={smallcaps,plushz}]
but in both cases quite a lot of lines have to be redone.
If MKIV would allow
\definetypeface [][][][][][extrafeatures=plushz]
so that the font synonym would then automatically be interpreted as
\definefontsynonym [SansCaps] [Sans] [features={smallcaps,plushz}]
that would be useful (i think so, at least)
sure, but then we need an extraextraextrafeatures later, so i'd rather
how so? simply adding feature names to the end of the list is an extensible solution, i thought.
ponder about an extendable solution; kind of \definefontfeature[extras][]
\definefontfeature[plushz][expansion=quality]
\definefontfeature[extras][plushz]
anyway, this also sounds good.
\definefontsynonym [SansCaps] [Sans] [features={smallcaps,extras}]
anyhow, the whole feature support is somewhat floating and will be extended anyway
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 -----------------------------------------------------------------
Taco Hoekwater wrote:
how so? simply adding feature names to the end of the list is an extensible solution, i thought.
yeah, but it's just that only \someprefix@feature is passed and not all variables; at least not currently in the mkii/mkiv mix 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)
-
Hans Hagen
-
Taco Hoekwater