[NTG-context] Why is my output body text in 15pt?

2014-07-23 Thread Gerben Wierda
I am typesetting a small pocketbook. I’m using mkii and the standard 
products/environment/chapters structure. I am trying to create a small 
paperbook size book with 11pt Optima font (using the converted font on my Mac).

Everything works, except the body text is in 15pt in the PDF. Now, I did all 
this font setup stuff years and years ago (I think the whole GTAMacFonts 
doesn’t work/exist anymore, I just keep it running on my system) and of course 
I suspect something not quite right in  that part, but when I completely leave 
out the Optima stuff, I get CMR in 15pt, so that is probably not it. When in 
CRM, I see log entries like

[7.5]
Overfull \hbox (4.50882pt too wide) in paragraph at lines 36--46
\*12ptrmtfrm*: rat-ings in-sti-tute are ca-pa-ble of han-dling this amount

\hbox(8.26648+2.1)x258.10477, glue set - 1.0
.\*12ptrmtfrm*: r
.\*12ptrmtfrm*: a
.\*12ptrmtfrm*: t
.\discretionary
..\*12ptrmtfrm*: -
.\*12ptrmtfrm*: i
.etc.

Which seems to indicate that the font is 12pt. But why is the document in 15pt 
text?

My environment contains (amongst other things):

\definepapersize[smallpaperback][width=5in,height=8in]
\setuppapersize[smallpaperback][smallpaperback]
\setuplayout[location=doublesided]
\setuppagenumbering[alternative=doublesided]
\setupsectionblock[frontpart][page=no]
\setupsectionblock[bodypart][page=no]
\setupsectionblock[appendix][page=no]
\setupsectionblock[backpart][page=no]

% Every chapter body text starts with lettrine:
\usemodule[lettrine]
\setuplettrine[Lines=3,
   Hang=.5,
   Oversize=0,
   Raise=0,
   Findent=0pt,
   Nindent=0em,
   Slope=0em,
   Ante=,
   FontHook=,
   TextFont=\sc,
   Image=no]

% Every chapter starts with a quote on the LHS page:
\setuphead
  [chapter]
  [page=,
   before={\setups[chapter:before]},
   after={\setups[chapter:after]}]

\startsetups chapter:before
\page[left]
\noheaderandfooterlines
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\em \getbuffer[chapter:quote]
\stopnarrower
\stopalignment
\resetsetups[quote:text]
\page[right]
\noheaderandfooterlines
\blank[force,2*big]
\stopsetups

\startsetups chapter:after
\blank[3*big]
\stopsetups

\setuptolerance[horizontal=strict]
\setupcolors[state=start]
\setupcolor[rgb]
%
\setupquote[style=small]
\setupnarrower[left=1cm,right=0.5cm]
%
\usetypescript[serif,sans,mono] [hanging] [normal]

% Bypassing type-gtamacfonts.tex
\starttypescript [sans,serif] [optima] [texnansi,ec]
\definefontsynonym [Optima-Regular] [\typescriptthree-OptimaRegular]
[encoding=\typescriptthree]
\definefontsynonym [Optima-Italic] [\typescriptthree-OptimaItalic]
[encoding=\typescriptthree]
\definefontsynonym [Optima-Bold] [\typescriptthree-OptimaBold]
[encoding=\typescriptthree]
\definefontsynonym [Optima-BoldItalic] [\typescriptthree-OptimaBoldItalic]
[encoding=\typescriptthree]
\definefontsynonym [Optima-ExtraBlack] [\typescriptthree-OptimaExtraBlack]
[encoding=\typescriptthree]
\stoptypescript
\starttypescript [sans,serif] [optima] [name]
\setups[font:fallback:\typescriptone]
\definefontsynonym [\typescriptprefix\typescriptone] [Optima-Regular]
\definefontsynonym [\typescriptprefix\typescriptone Italic] [Optima-Italic]
\definefontsynonym [\typescriptprefix\typescriptone Bold]   [Optima-Bold]
\definefontsynonym [\typescriptprefix\typescriptone BoldItalic]
[Optima-BoldItalic]
\definefontsynonym [\typescriptprefix\typescriptone Black] [Optima-ExtraBlack]
\stoptypescript
\definetypeface[allsans][rm][serif][optima][default][encoding=texnansi]
\definetypeface[allsans][ss][sans][optima][default][encoding=texnansi]
\loadmapfile [gtamacfonts.map]
\setupbodyfont[allsans,11pt]___
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] Why is my output body text in 15pt?

2014-07-23 Thread Hans Hagen

On 7/23/2014 12:13 PM, Gerben Wierda wrote:

I am typesetting a small pocketbook. I’m using mkii and the standard
products/environment/chapters structure. I am trying to create a small
paperbook size book with 11pt Optima font (using the converted font on
my Mac).


if you're using luatex with type 1 fonts, take a look at the mkiv 
typescripts; you don't need the encodings any more as we're unicode and 
type one fonts are also mapped onto unicode (you only need afm files and 
pfb files, no tfm is used)


\starttypescript [serif] [melior] [name]

  \definefontsynonym [MeliorLT-Roman]   [MeliorLT]

  \definefontsynonym [Serif][MeliorLT-Roman]
  \definefontsynonym [SerifItalic]  [MeliorLT-Italic]
  \definefontsynonym [SerifBold][MeliorLT-Bold]
  \definefontsynonym [SerifBoldItalic]  [MeliorLT-BoldItalic]

  \definefontsynonym [SerifSlanted] [SerifItalic]
  \definefontsynonym [SerifBoldSlanted] [SerifBoldItalic]

  \definefontsynonym [SerifCaps][Serif]

\stoptypescript

\starttypescript [serif] [melior]

  \definefontsynonym [MeliorLT][file:lte50062]
  \definefontsynonym [MeliorLT-Italic] [file:lte50063]
  \definefontsynonym [MeliorLT-Bold]   [file:lte50064]
  \definefontsynonym [MeliorLT-BoldItalic] [file:lte50065]

\stoptypescript

i'm not sure why you get 15pt if not asked for but simplifying the 
typescripts might help sorting it out


(alternatively use the now built-in selectfont mechanism)

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
___