* hz and protrusion
@ 2008-02-15 18:08 Hans Hagen
2008-03-03 5:08 ` David Wooten
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2008-02-15 18:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
The latest luatex beta + mkiv support hz and protruding. The user
interface will be extended a bit, but for the moment it goes as follows:
% engine=luatex
% \setupfontexpansion [quality][stretch=2.5,shrink=2.5,step=.5,factor=1]
\setupfontexpansion[oeps][a=1,b=2]
\setuptolerance[verytolerant,stretch] \showframe
\starttext
\definefontfeature[demo][default][mode=node,expansion=quality,protrusion=pure]
\start
\definedfont[Serif*demo at 12pt] \enableadjusting
\enableprotruding \input tufte \par
%\definedfont[name:optimanova*demo at 12pt] \enableadjusting
\enableprotruding \input tufte \par
\stop
\stoptext
(or the usual \setupalign options)
As you may deduce from this example, handling is gone in mkiv. This not
only safes some 40K format file, but the new mechanism also runs faster
(some 10% overhead on 300 pages of pure text, which is rare).
At some point we need to extend the hz/protruding vectors in mkiv to
cover non latin scripts as well (currently they default to factors of
1). As with mkiv, latin glyphs fall back to their shape parent.
Under some circumstances hz may not work as expected. Fixing this is on
the agenda for the next luatex beta release.
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hz and protrusion
2008-02-15 18:08 hz and protrusion Hans Hagen
@ 2008-03-03 5:08 ` David Wooten
2008-03-03 9:57 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: David Wooten @ 2008-03-03 5:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hans,
This is great news, thanks a million.
Where should I keep an eye out for the interface extensions?
Dave
On Feb 15, 2008, at 10:08 AM, Hans Hagen wrote:
> Hi,
>
> The latest luatex beta + mkiv support hz and protruding. The user
> interface will be extended a bit, but for the moment it goes as
> follows:
>
> % engine=luatex
>
> % \setupfontexpansion [quality][stretch=2.5,shrink=2.5,step=.
> 5,factor=1]
>
> \setupfontexpansion[oeps][a=1,b=2]
>
> \setuptolerance[verytolerant,stretch] \showframe
>
> \starttext
>
> \definefontfeature[demo][default]
> [mode=node,expansion=quality,protrusion=pure]
>
> \start
> \definedfont[Serif*demo at 12pt] \enableadjusting
> \enableprotruding \input tufte \par
> %\definedfont[name:optimanova*demo at 12pt] \enableadjusting
> \enableprotruding \input tufte \par
> \stop
>
> \stoptext
>
> (or the usual \setupalign options)
>
> As you may deduce from this example, handling is gone in mkiv. This
> not
> only safes some 40K format file, but the new mechanism also runs
> faster
> (some 10% overhead on 300 pages of pure text, which is rare).
>
> At some point we need to extend the hz/protruding vectors in mkiv to
> cover non latin scripts as well (currently they default to factors of
> 1). As with mkiv, latin glyphs fall back to their shape parent.
>
> Under some circumstances hz may not work as expected. Fixing this is
> on
> the agenda for the next luatex beta release.
>
> 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
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hz and protrusion
2008-03-03 5:08 ` David Wooten
@ 2008-03-03 9:57 ` Hans Hagen
0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2008-03-03 9:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
David Wooten wrote:
> Hans,
>
> This is great news, thanks a million.
>
> Where should I keep an eye out for the interface extensions?
on this list
-----------------------------------------------------------------
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-03-03 9:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-15 18:08 hz and protrusion Hans Hagen
2008-03-03 5:08 ` David Wooten
2008-03-03 9:57 ` 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).