[NTG-context] OpenType, Jenson, handling

Adam Lindsay atl at comp.lancs.ac.uk
Fri Apr 22 22:56:41 CEST 2005


Hans Hagen said this at Fri, 22 Apr 2005 20:36:43 +0200:

>David Wooten wrote:
>> Greetings all,
>> 
>> Adam,
>> Have you had any success in using hanging alignment handling with Adobe 
>> Jenson Pro? The last reference to this I've found was in your 2003 My 
>> Way on the subject.
>
>it's indepent of the font,

Actually, the thing David asked about was a weird bug turned up between
FontForge's font conversion, that particular font, and the pdfetex of
that time. I haven't seen anything like that since, especially since
using the --lcdf switch.

In any case, that font works for me now.

texfont --ma --in --lcdf --pre --ve=adobe --co=jenson --va=liga,kern,onum,pnum
texfont --ma --in --lcdf --pre --ve=adobe --co=jenson --
va=liga,kern,smcp,lnum,tnum

- 8< ---

\loadmapfile[texnansi-LIGA-KERN-ONUM-PNUM-adobe-jenson]
\loadmapfile[texnansi-LIGA-KERN-SMCP-LNUM-TNUM-adobe-jenson]
\def\SerifTypefaceFeatures    {LIGA-KERN-ONUM-PNUM}
\def\SerifCapsTypefaceFeatures{LIGA-KERN-SMCP-LNUM-TNUM}
% reduced from a more elaborate typescript
\starttypescript [serif] [JensonPro] [texnansi,ec,8r]
 \definefontsynonym[Serif]                     [\typescriptthree-
\SerifTypefaceFeatures-AJensonPro-Regular]      
[encoding=\typescriptthree,handling=pure]
 \definefontsynonym[SerifItalic]               [\typescriptthree-
\SerifTypefaceFeatures-AJensonPro-It]           
[encoding=\typescriptthree,handling=pure]
 \definefontsynonym[SerifBold]                 [\typescriptthree-
\SerifTypefaceFeatures-AJensonPro-Bold]         
[encoding=\typescriptthree,handling=pure]
 \definefontsynonym[SerifBoldItalic]           [\typescriptthree-
\SerifTypefaceFeatures-AJensonPro-BoldIt]       
[encoding=\typescriptthree,handling=pure]
 \definefontsynonym[SerifCaps]                 [\typescriptthree-
\SerifCapsTypefaceFeatures-AJensonPro-Regular]  
[encoding=\typescriptthree,handling=pure]
\stoptypescript

\definetypeface[jenny][rm][serif][JensonPro][default][encoding=texnansi]
\setupalign[hanging]
\setuptolerance[tolerant]
\setupbodyfont[jenny,12pt]

\def\compoundhyphen {\scale[sx=1.5]{-}}

\starttext
\startcolumns[n=2]
\dorecurse{3}{\input tufte \par \input knuth \par}
\stopcolumns
\stoptext

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl at comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



More information about the ntg-context mailing list