ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Tracking in MKII and MKIV
@ 2011-08-16  0:22 Raymond LeClair
  2011-08-16  8:02 ` Wolfgang Schuster
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Raymond LeClair @ 2011-08-16  0:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 4230 bytes --]

I am automating the creation of books using ConTeXt with a graphic design graduate student at the Rhode Island School of Design.

The book cover is created using MetaPost inside a ConTeXt source file.

The graphic designer tells me it is very common to specify the interletter spacing, or tracking, and in fact, he considers this capability to be essential.

I understand that these, so called, microtypography capabilities are present in pdfTeX fully, but only partially present in LuaTeX (protrusion and expansion), although tracking can be set in a way using \kerncharacters[0.5] in LuaTeX.

However, the quality of the typesetting produced by LuaTeX is completely inadequate, while the quality of the typesetting produced by pdfTeX is very good.

Am I miss-understanding the differences in capability between pdfTeX and LuaTeX in this regard?

Relevant examples follow and PDFs are attached.


I processed the following ConTeXt source file using MKII:

This is pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009) (format=cont-en 2011.8.13)
ConTeXt  ver: 2011.05.18 18:04 MKII  fmt: 2011.8.13  int: english/english

===== START MKII EXAMPLE =====
\pdfminorversion=5

\definepapersize[LG1][width=9.3in,height=6.87in]
\definepapersize[LP1][width=9.55in,height=7.12in]

\setuppapersize[LG1][LP1]

\setuplayout[location=middle,marking=off]

\setuppagenumber[state=stop]

\startMPenvironment
  \usetypescript[modern][ec]
  \switchtotypeface[modern][7.0pt]
  \setupinterlinespace
  \def\stretchedspacefactor{4}
  \def\stretchedspaceamount{0.25em}
\stopMPenvironment

\startuniqueMPgraphic{cover}
  cover_paper_width := 9.55in;
  cover_paper_height := 7.12in;
  left_margin := 0.347222222222in;
  top_margin := 0.347222222222in;
  bottom_margin := 0.347222222222in;

  draw (0, 0)--(cover_paper_width, cover_paper_height)
    withpen pencircle scaled 1bp withcolor white;

  picture labelText;
  labelText := btex {\vbox{\hsize 2.38888888889in \baselineskip 10.5pt
                           T\hskip 0.25em\stretchednormalcase{HIS BOOK
                             CONTAINS 988 TWEETS POSTED TO TWITTER BY
                             LADYGAGA FROM MARCH 27, 2008 TO AUGUST 5,
                             2011. IT WAS PUBLISHED ON DEMAND ON AUGUST
                             14, 2011}}} etex;
  labeloffset := 0bp;
  label.lrt(labelText, (left_margin,
                        cover_paper_height - top_margin));

\stopuniqueMPgraphic

\defineoverlay[cover][\uniqueMPgraphic{cover}]

\starttext

\title{}
\setupbackgrounds[paper][background={cover}]

\stoptext
===== STOP MKII EXAMPLE =====

I processed the following ConTeXt source file using MKIV:

this is luatex, version beta-0.70.1-2011051908 (rev 4277)
ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.13  int: english/english

===== START MKVI EXAMPLE =====
\pdfminorversion=5

\definepapersize[LG1][width=9.24in,height=6.87in]
\definepapersize[LP1][width=9.49in,height=7.12in]

\setuppapersize[LG1][LP1]

\setuplayout[location=middle,marking=off]

\setuppagenumber[state=stop]

\definefont[LabelFont][Serif sa 0.583]

\startuniqueMPgraphic{cover}
  cover_paper_width := 9.49in;
  cover_paper_height := 7.12in;
  left_margin := 0.347222222222in;
  top_margin := 0.347222222222in;
  bottom_margin := 0.347222222222in;
 
  draw (0, 0)--(cover_paper_width, cover_paper_height)
    withpen pencircle scaled 1bp withcolor white;

  picture labelText;
  labelText := btex {\vbox{\hsize 2.38888888889in \baselineskip 10.5pt \LabelFont
                           {\kerncharacters[0.5]
                            THIS BOOK CONTAINS 988 TWEETS POSTED TO
                            TWITTER BY LADYGAGA FROM MARCH 27, 2008
                            TO AUGUST 5, 2011. IT WAS PUBLISHED ON
                            DEMAND ON AUGUST 14, 2011}}} etex;
  labeloffset := 0bp;
  label.lrt(labelText, (left_margin,
                        cover_paper_height - top_margin));

\stopuniqueMPgraphic

\defineoverlay[cover][\uniqueMPgraphic{cover}]

\starttext

\title{}
\setupbackgrounds[paper][background={cover}]

\stoptext
===== STOP MKVI EXAMPLE =====

The MKII PDF


[-- Attachment #2: cover-mkii.pdf --]
[-- Type: application/pdf, Size: 27999 bytes --]

[-- Attachment #3: Type: text/plain, Size: 15 bytes --]


The MKIV PDF


[-- Attachment #4: cover-mkiv.pdf --]
[-- Type: application/pdf, Size: 8780 bytes --]

[-- Attachment #5: Type: text/plain, Size: 2 bytes --]




[-- Attachment #6: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2011-08-16 23:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-16  0:22 Tracking in MKII and MKIV Raymond LeClair
2011-08-16  8:02 ` Wolfgang Schuster
2011-08-16  8:23 ` Hans Hagen
2011-08-16  8:37 ` Hans Hagen
2011-08-16 23:11   ` 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).