ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Why is my output body text in 15pt?
@ 2014-07-23 10:13 Gerben Wierda
  2014-07-23 10:27 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Gerben Wierda @ 2014-07-23 10:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3811 bytes --]

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.33331)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]

[-- Attachment #1.2: Type: text/html, Size: 9830 bytes --]

[-- Attachment #2: 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] 2+ messages in thread

* Re: Why is my output body text in 15pt?
  2014-07-23 10:13 Why is my output body text in 15pt? Gerben Wierda
@ 2014-07-23 10:27 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2014-07-23 10:27 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-23 10:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-23 10:13 Why is my output body text in 15pt? Gerben Wierda
2014-07-23 10:27 ` 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).