[NTG-context] odd end-of-line error w/ Minion Pro

2011-02-11 Thread Daniel Lyons
Hi,

I'm seeing a strange behavior with Minion Pro in OTF and the simplefont 
package. I'm not sure if it only happens with simplefont because I don't know 
how to set up a typescript. In any case, in breaking a line between roman and 
italic text, ConTeXt is losing a bit of space at the end of line. I thought it 
might be related to using hz or hanging alignment, or the quality option for 
protrusion and expansion, but it seems to happen even with these features 
disabled. Very unclear what could be causing this. Is it a known issue? What is 
this kind of bad behavior called?

I've attached an image to which I've added a red line to show where the 'a' is 
leaving extra space before the newline.

Thanks again,

— 
Daniel Lyons
inline: oddspace.png___
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
___


Re: [NTG-context] odd end-of-line error w/ Minion Pro

2011-02-11 Thread Hans Hagen

On 11-2-2011 9:26, Daniel Lyons wrote:

Hi,

I'm seeing a strange behavior with Minion Pro in OTF and the simplefont 
package. I'm not sure if it only happens with simplefont because I don't know 
how to set up a typescript. In any case, in breaking a line between roman and 
italic text, ConTeXt is losing a bit of space at the end of line. I thought it 
might be related to using hz or hanging alignment, or the quality option for 
protrusion and expansion, but it seems to happen even with these features 
disabled. Very unclear what could be causing this. Is it a known issue? What is 
this kind of bad behavior called?

I've attached an image to which I've added a red line to show where the 'a' is 
leaving extra space before the newline.


hard to say without the input ... could be a spurious space

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] odd end-of-line error w/ Minion Pro

2011-02-11 Thread Christian
Am Freitag, 11. Februar 2011, um 09:26:59 schrieben Sie:
 Hi,
 
 I'm seeing a strange behavior with Minion Pro in OTF and the simplefont
 package. I'm not sure if it only happens with simplefont because I don't
 know how to set up a typescript. In any case, in breaking a line between
 roman and italic text, ConTeXt is losing a bit of space at the end of
 line. I thought it might be related to using hz or hanging alignment, or
 the quality option for protrusion and expansion, but it seems to happen
 even with these features disabled. Very unclear what could be causing
 this. Is it a known issue? What is this kind of bad behavior called?
 
 I've attached an image to which I've added a red line to show where the 'a'
 is leaving extra space before the newline.
 
 Thanks again,
 
 —
 Daniel Lyons

Are you shure it's not the isn't that is penetrating the margin? One can't 
really tell from the provided picture if the a or the t is the actual edge 
of the text. I also included a typescript for adobe fonts (incl. MinionPro) 
that was kindly shared on this list by Florian Wobbe.
\usemodule[type-adobeoptical]

\starttypescript [myFont]
\definetypeface [\typescriptone] [rm] [serif][minion] [optical] %[rscale=1.14407]
\stoptypescript


\setupalign[hanging,hz]

% main body font
\usetypescript[myFont]
\setupbodyfont[myFont,12pt]

\starttext

Minion Normal\\
{\it Minion Italic}\\
{\cn Minion Condensed}\\
{\ci Minion CondensedItalic}\\
{\sb Minion Semibold}\\
{\sbi Minion SemiboldItalic}\\
{\bf Minion Bold}\\
{\bi Minion BoldItalic}\\
ff fi ffi ffl fk fb fj --\\

\stoptext
%D \module
%D   [   file=type-adobeoptical,
%Dversion=2010.09.20,
%D  title=\CONTEXT\ Typescript Macros,
%D   subtitle=Adobe Optical Font Definitions,
%D author=Florian Wobbe,
%D   date=\currentdate,
%D  copyright=Florian Wobbe]
%C
%C Copyright 2010 Florian Wobbe.
%C This file may be distributed under the GNU General Public License v. 2.0.

%% font sizes
%% Cronos Pro
%% Caption: 6--8 point
%% Normal (Regular): 8--14 point
%% Subhead: 14--24 point
%% Display: 24+ point

%% Minion Pro
%% Caption: 6--8.4 point
%% Normal (Regular): 8.4--13 point
%% Subhead: 13--19.9 point
%% Display: 19.9+ point

%% Brioso Pro
%% Caption: 6--9.4 point
%% Normal (Regular): 9.4--14 point
%% Subhead: 14--21 point
%% Display: 21+ point

%% Utopia Pro
%% Caption: 6--8.9 point
%% Normal (Regular): 8.9--13 point
%% Subhead: 13--20 point
%% Display: 20+ point

%% Kepler Std
%% Caption: 6--8.9 point
%% Normal (Regular): 8.9--13.9 point
%% Subhead: 13.9--23 point
%% Display: 23+ point

%% Warnock Pro
%% Caption: 1--8.9 point
%% Normal (Regular): 8.9--12.9 point
%% Subhead: 12.9--22.9 point
%% Display: 22.9+ point

%% Serif
%% Caption: 6--9 point
%% Normal (Regular): 9--13 point
%% Subhead: 13--22 point
%% Display: 22+ point

%% our setup (for now):
%% Caption: 4,5,6,7,8 point
%% Normal (Regular): 9,10,11 point
%% Subhead: 12,14.4,17.3 point
%% Display: 20.7,24.9 point

% 4pt,4.8pt,5pt,5.8pt,6pt,6.9pt,7pt,7.2pt,8pt,8.3pt,8.4pt,8.6pt
% 9pt,9.6pt,10pt,10.1pt,10.4pt,10.8pt,11pt,11.5pt
% 12pt,12.1pt,12.4pt,13pt,13.2pt,13.8pt,14.4pt,14.5pt,14.9pt,15.6pt,15.8pt,16.6pt,17.3pt,17.4pt
% 18.7pt,19pt,19.9pt,20.7pt,22.4pt,22.8pt,24.8pt,24.9pt,27.4pt,29.8pt,29.9pt,35.8pt,35.9pt,42.9pt,43pt,52.5pt

%% Font features

%% Small caps
% \definefontfeature[default][liga=yes,texligatures=yes,texquotes=yes]
\definefontfeature[default][default][expansion=quality,protrusion=quality,mode=node,script=latn,kern=yes,palt=yes,tlig=yes,trep=yes,init=yes,size=yes]
\definefontfeature[dlig][default][dlig=yes] % Discretionary Ligatures: Activates uncommon ligatures
\definefontfeature[frac][default][frac=yes,numr=yes] % Fractions e.g. 3/4
\definefontfeature[pnum][default][pnum=yes] % Proportional Figures
\definefontfeature[tnum][default][tnum=yes] % Tabular Figures
\definefontfeature[hist][default][hist=yes] % Historical Forms
\definefontfeature[ornm][default][ornm=yes] % Ornaments
\definefontfeature[salt][default][salt=yes] % Stylistic Alternates
\definefontfeature[sups][default][sups=yes] % Superscript
\definefontfeature[subs][default][subs=yes] % Subscript

% small caps wrapper
\def\smcp#1{{\setff{smallcaps}#1}}

\definefontfeature[addfssmcp][mode=node,smcp=yes]
\unexpanded\def\sc{\addfs{addfssmcp}}

%% We need style switches for semibold and other variants
\definefontalternative [bc]
\definefontalternative [bci]
\definefontalternative [sb]
\definefontalternative [sbc]
\definefontalternative [sbci]
\definefontalternative [sbi]
\definefontalternative [mf]
\definefontalternative [mc]
\definefontalternative [mci]
\definefontalternative [mi]
\definefontalternative [lf]
\definefontalternative [li]
\definefontalternative [lp]
\definefontalternative [lpi]
\definefontalternative [cn]
\definefontalternative [ci]

\definestyle [boldcondensed]   [\bc]   []
\definestyle [boldcondenseditalic] [\bci]  []
\definestyle [semibold][\sb]   []
\definestyle