ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Proper setting of font features for protrusion/expansion
Date: Sun, 4 May 2014 21:39:55 +0200	[thread overview]
Message-ID: <90084709-8B23-4880-B806-5BC7A28348FC@gmail.com> (raw)
In-Reply-To: <53667a5e.c6cf0e0a.6333.339eSMTPIN_ADDED_BROKEN@mx.google.com>


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
___________________________________________________________________________________


       reply	other threads:[~2014-05-04 19:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <53667a5e.c6cf0e0a.6333.339eSMTPIN_ADDED_BROKEN@mx.google.com>
2014-05-04 19:39 ` Wolfgang Schuster [this message]
2014-05-04 20:41   ` Jan Tosovsky
     [not found]   ` <00b201cf67d9$4a610470$df230d50$@tosovsky@email.cz>
2014-05-04 22:36     ` Hans Hagen
2014-05-04 17:34 Jan Tosovsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=90084709-8B23-4880-B806-5BC7A28348FC@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).