ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: mkiv vs. mkii
Date: Sat, 26 Sep 2009 11:27:54 +0200	[thread overview]
Message-ID: <4ABDDE9A.2000401@elvenkind.com> (raw)
In-Reply-To: <86d68cc30909260118t384a597ar7562485efadf6d1a@mail.gmail.com>


Hi Mika,

Mika Ritola wrote:
> 
> Could you explain what mode=node does? I've seen it mentioned many times but
> I still don't know what its purpose is. I searched the ConTeXt site (using
> the search box), and didn't find any other useful information on it except
> that it affects kerning, but how? What are the advantages and disadvantages
> of using it? When should you use it?

Mark IV has two font processing modes, 'base' and 'node'.

In base mode, the font metrics are transformed into a traditional
tfm-style table, which means that all kerning and ligaturing is
handled by the core luatex engine. This is very similar to the
processing that takes place mkii (pdftex). Its advantage is that
it is faster than node mode, but the disadvantage is that you do
not have access to any of the advanced features in opentype fonts.

In mode node, the font metrics is transformed into a table that
has no kerning nor ligatures at all, and the kerning and ligature
processing is handled by the mkiv lua code instead of the core engine.
The advantage is that you can do much more advanced stuff (for example,
node mode is required for on-the-fly feature changes, all non-trivial
ligature replacements, and for non-latin scripts) but the disadvantage
is that processing is slower.

Currently mkiv defaults to base mode except for the predefined
fontfeatureset 'arabic', but this may change in the future, IIRC.

Best wishes,
Taco
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


      reply	other threads:[~2009-09-26  9:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-26  7:33 Taco Hoekwater
2009-09-26  8:18 ` Mika Ritola
2009-09-26  9:27   ` Taco Hoekwater [this message]

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=4ABDDE9A.2000401@elvenkind.com \
    --to=taco@elvenkind.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).