ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Proper setting of font features for protrusion/expansion
@ 2014-05-04 17:34 Jan Tosovsky
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Tosovsky @ 2014-05-04 17:34 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

Dear All,


e.g. in the last example at http://wiki.contextgarden.net/Protrusion there
is the following definition:

\definefontfeature[default][default][expansion=quality,protrusion=quality]


I understand it overrides default settings and adds these two features.

In my code I use the following shortcut found somewhere:

\definefontfamily[palatino][rm][Palatino Linotype][features={default,
quality}]


Both features works, but I am not sure if I am getting the best quality.

Is there any description what that '[features={default, quality}]' option
really does?


Thanks, Jan




___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Proper setting of font features for protrusion/expansion
       [not found]   ` <00b201cf67d9$4a610470$df230d50$@tosovsky@email.cz>
@ 2014-05-04 22:36     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2014-05-04 22:36 UTC (permalink / raw)
  To: ntg-context

On 5/4/2014 10:41 PM, Jan Tosovsky wrote:
> On 2014-05-04 Wolfgang Schuster wrote:
>> Am 04.05.2014 um 19:34 schrieb Jan Tosovsky:
>>
>>> In my code I use the following shortcut found somewhere:
>>>
>>> \definefontfamily[palatino][rm][Palatino Linotype][features={default,
>>> quality}]
>>>
>>> Is there any description what that '[features={default, quality}]'
>>> option really does?
>>
>> When you apply features to a font you can set a list of features and
>> all of them will be applied.
>>
>> In the example below you can see both methods, the first text uses the
>> new featurelist "testfeature" which uses "default" and extends it with
>> "protrusion=quality". The second text applies the two predefined lists
>> "default" and "quality" (which sets "protrusion=quality"
>> and "expansion=quality").
>>
>> \definefontfeature[testfeature][default][protrusion=quality]
>> ...
>> \startfont[Serif*testfeature]
>> ...
>> \startfont[Serif*default,quality]
>
> Aahh, thanks.
>
> So it is the preset name what confused me here... From my POV the 'quality'
> should be replaced with the more specific label. I believe it will enhance
> readability the code. I can imagine even 'microtypography' for this kind of
> preset.

quality is just a tag for a preset ... on can add his/her own

btw, i have no clue what micro or typography is involved (esp when 
excessive values are used) ,,, using that term for a preset would be 
rather confusing

> Jan
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>


-- 

-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Proper setting of font features for protrusion/expansion
  2014-05-04 19:39 ` Wolfgang Schuster
@ 2014-05-04 20:41   ` Jan Tosovsky
       [not found]   ` <00b201cf67d9$4a610470$df230d50$@tosovsky@email.cz>
  1 sibling, 0 replies; 4+ messages in thread
From: Jan Tosovsky @ 2014-05-04 20:41 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

On 2014-05-04 Wolfgang Schuster wrote:
> Am 04.05.2014 um 19:34 schrieb Jan Tosovsky:
> 
> > In my code I use the following shortcut found somewhere:
> >
> > \definefontfamily[palatino][rm][Palatino Linotype][features={default,
> > quality}]
> >
> > Is there any description what that '[features={default, quality}]'
> > option really does?
> 
> When you apply features to a font you can set a list of features and
> all of them will be applied.
> 
> In the example below you can see both methods, the first text uses the
> new featurelist "testfeature" which uses "default" and extends it with
> "protrusion=quality". The second text applies the two predefined lists 
> "default" and "quality" (which sets "protrusion=quality"
> and "expansion=quality").
> 
> \definefontfeature[testfeature][default][protrusion=quality]
> ... 
> \startfont[Serif*testfeature]
> ...
> \startfont[Serif*default,quality]

Aahh, thanks. 

So it is the preset name what confused me here... From my POV the 'quality'
should be replaced with the more specific label. I believe it will enhance
readability the code. I can imagine even 'microtypography' for this kind of
preset.

Jan

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Proper setting of font features for protrusion/expansion
       [not found] <53667a5e.c6cf0e0a.6333.339eSMTPIN_ADDED_BROKEN@mx.google.com>
@ 2014-05-04 19:39 ` Wolfgang Schuster
  2014-05-04 20:41   ` Jan Tosovsky
       [not found]   ` <00b201cf67d9$4a610470$df230d50$@tosovsky@email.cz>
  0 siblings, 2 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2014-05-04 19:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 04.05.2014 um 19:34 schrieb Jan Tosovsky <j.tosovsky@email.cz>:

> Dear All,
> 
> 
> e.g. in the last example at http://wiki.contextgarden.net/Protrusion there
> is the following definition:
> 
> \definefontfeature[default][default][expansion=quality,protrusion=quality]
> 
> 
> I understand it overrides default settings and adds these two features.
> 
> In my code I use the following shortcut found somewhere:
> 
> \definefontfamily[palatino][rm][Palatino Linotype][features={default,
> quality}]
> 
> 
> Both features works, but I am not sure if I am getting the best quality.
> 
> Is there any description what that '[features={default, quality}]' option
> really does?

When you apply features to a font you can set a list of features and all of them will be applied.

In the example below you can see both methods, the first text uses the new featurelist
“testfeature” which uses “default” and extends it with “protrusion=quality”. The second
text applies the two predefined lists “default” and “quality” (which sets “protrusion=quality”
and “expansion=quality”).

\setupalign[hanging]

\definefontfeature[testfeature][default][protrusion=quality]

\showframe[text][text]

\starttext

\startfont[Serif*testfeature]
\input knuth
\stopfont

\startfont[Serif*default,quality]
\input knuth
\stopfont

\stoptext

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-04 22:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-04 17:34 Proper setting of font features for protrusion/expansion Jan Tosovsky
     [not found] <53667a5e.c6cf0e0a.6333.339eSMTPIN_ADDED_BROKEN@mx.google.com>
2014-05-04 19:39 ` Wolfgang Schuster
2014-05-04 20:41   ` Jan Tosovsky
     [not found]   ` <00b201cf67d9$4a610470$df230d50$@tosovsky@email.cz>
2014-05-04 22:36     ` Hans Hagen

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).