From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63633 Path: news.gmane.org!not-for-mail From: Peter Davis Newsgroups: gmane.comp.tex.context Subject: font, line spacing issues Date: Wed, 17 Nov 2010 19:25:31 -0500 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1472321996==" X-Trace: dough.gmane.org 1290039965 4817 80.91.229.12 (18 Nov 2010 00:26:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Nov 2010 00:26:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 18 01:26:00 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PIsK6-0005Cw-4p for gctc-ntg-context-518@m.gmane.org; Thu, 18 Nov 2010 01:25:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 50270CA84D; Thu, 18 Nov 2010 01:25:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0LDYN2ZAyogm; Thu, 18 Nov 2010 01:25:49 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8B00ACA83A; Thu, 18 Nov 2010 01:25:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4332BCA83A for ; Thu, 18 Nov 2010 01:25:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SpM0F16+FSRs for ; Thu, 18 Nov 2010 01:25:34 +0100 (CET) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 9ACAECA82E for ; Thu, 18 Nov 2010 01:25:34 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oAI0PXNn025658 for ; Thu, 18 Nov 2010 01:25:33 +0100 Original-Received: by fxm20 with SMTP id 20so1154245fxm.14 for ; Wed, 17 Nov 2010 16:25:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=L3JJxU2TFiIqmxWgxJIRG7zl7D99njwPhyi7Z6mO8vc=; b=CsrHjz/d7ghlCMukcNRg/8t74Jd63/YIl/B2OyfHOEHLIMHC6gTBH0xSouUVj50haG 5WoVX9r0x6jM+U55jMpl2mhAnJbueQuSD7OQCfwYsrWYlzZYBs8t+JLqHOLIVOu++xJR 9C/CKXekAJgNu7aveYNKgOhPvTKQ/RaTtLF+I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=rlgFv6NFMMdcIzvDqC3Js/DsC5DbdqsVW66ghJBUL12oH4Zf0pQf9Uy0LQ1YV4/Eug jDc7vtoUzKvmdQQNTLBmk4GdbL3xWEfIqA759ZNUeC/sYPLO9QDeMpNR3E8ydDZ4izI7 bWectapWj3i4s8Bisnqk0L4BKhV1ZxwcKi4Cw= Original-Received: by 10.223.69.134 with SMTP id z6mr577545fai.19.1290039931629; Wed, 17 Nov 2010 16:25:31 -0800 (PST) Original-Received: by 10.223.104.15 with HTTP; Wed, 17 Nov 2010 16:25:31 -0800 (PST) X-Google-Sender-Auth: G6EzIt90NRxYvxtVXm0T5XLMGmk X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07DwopxVf - a0aa170c5c6b - 20101118 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:63633 Archived-At: --===============1472321996== Content-Type: multipart/alternative; boundary=20cf3054a56bdefa6a049548d314 --20cf3054a56bdefa6a049548d314 Content-Type: text/plain; charset=ISO-8859-1 As an experiment, I'm trying to duplicate a sample InDesign document with ConTeXt. I'm getting the overall layout (though my image positions need tweaking), but I'm having some problems with the fonts. I'm following the examples in http://www.pragma-ade.com/general/manuals/showfont.pdf , but I haven't seen the \switchtotypeface operator documented anywhere else. I'm on a Windows 7 machine, with minimals installed. I'm trying to use some of the system fonts (Minion, Impact, Myriad), but all I seem to get is CMR. Also, the line spacing on the paragraph at the top of the second page seems very weird. It's an address, and the bottom line is much too high relative to the spacing of the other lines. Here's the file: \definepapersize[card][width=792pt,height=612pt] \setuppapersize[card][card] \definetypeface[impact[rm][serif][mpact regular][default] \definetypeface[minion][rm][serif][Minion Pro Regular][default] \definetypeface[myriad][rm][serif][Myriad Pro Regular][default] \setupcolor[cmyk] \setupcolors[state=start] \definecolor[red][c=0,m=.87,y=.87,k=0] \definelayer[textbox][width=\paperwidth,height=\paperheight] \setupbackgrounds[page][background=textbox] \def\starttextbox {\dosingleargument\dostarttextbox} \def\dostarttextbox[#1]% {\def\stoptextbox{\setlayerframed[textbox][width=6cm,align=normal,frame=off,#1]{\getbuffer[textbox]}}% \startbuffer[textbox][starttextbox][stoptextbox]} \starttext %\starttextbox[x=12pt,y=20pt,width=768pt] %\useexternalfigure[ador1][Chrysanthemum.jpg][width=768pt] %\placefigure[here,force][]{none}{\externalfigure[ador1]} %\stoptextbox \starttextbox[x=195.3pt,y=115.2pt,width=560.7pt] \switchtotypeface[impact][48pt] \midaligned{Yo, First!} \stoptextbox \page[empty] \starttextbox[x=447.6pt,y=228pt,width=229.5pt] \switchtotypeface[minion][14pt]% Title. First Last \\ Company \\ Street Address \\ City, State, ZIP \stoptextbox \starttextbox[x=85.2pt,y=228pt,width=229.5pt] \switchtotypeface[minion][14pt]% Dear First,\\ \blank Are you aware that now is the {\bf winter of our discontent}? It's been made {\it glori}\color[red]{\it ous} \color[red]{\bi sum}{\bi mer} by this son of York.\\ \blank I say let's put it back the way it was. Are you with me, Last?\\ \blank Good.\\ \blank -pd \stoptextbox %\starttextbox[x=85.2pt,y=62.4pt,width=229.5pt] %\useexternalfigure[ador2][pd-logo-nobg.eps][scale=245.37] %\placefigure[here,force][pdlogo]{none}{\externalfigure[ador2]} %\stoptextbox \starttextbox[x=249.6pt,y=62.4pt,width=298.8pt] \switchtotypeface[myriad][20pt]% Peter Davis\\ Head Hoo-Ha\\ Hoo-Ha House, Inc.\\ 123 Fourfivesix St.\\ Lake Placebo, NY 12345-6789 \stoptextbox \page[empty] \stoptext --20cf3054a56bdefa6a049548d314 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable As an experiment, I'm trying to duplicate a sample InDesign document wi= th ConTeXt. =A0I'm getting the overall layout (though my image position= s need tweaking), but I'm having some problems with the fonts.

I'm following the examples in=A0http://www.pragma-ade.com/general/ma= nuals/showfont.pdf=A0, but I haven't seen the \switchtotypeface ope= rator documented anywhere else. =A0I'm on a Windows 7 machine, with min= imals installed. =A0I'm trying to use some of the system fonts (Minion,= Impact, Myriad), but all I seem to get is CMR.

Also, the line spacing on the paragraph at the top of t= he second page seems very weird. =A0It's an address, and the bottom lin= e is much too high relative to the spacing of the other lines.

Here's the file:

\definepapersi= ze[card][width=3D792pt,height=3D612pt]

\setuppapersize[card][card]

\definetypeface[impact[rm][se= rif][mpact regular][default]

\definetypeface[minion][rm][s= erif][Minion Pro Regular][default]

\definetypeface[myriad][rm][s= erif][Myriad Pro Regular][default]

\setupcolor[cmyk]

\setupcolors[state=3Dstart]

\definecolor[red][c=3D0,m=3D.= 87,y=3D.87,k=3D0]

\definelayer[textbox][width= =3D\paperwidth,height=3D\paperheight]

\setupbackgrounds[page][backg= round=3Dtextbox]

\def\starttextbox

{\dosingleargument\dostartt= extbox}

\def\dostarttextbox[#1]%

{\def\stoptextbox{\setlayer= framed[textbox][width=3D6cm,align=3Dnormal,frame=3Doff,#1]{\getbuffer[textb= ox]}}%

\startbuffer[textbox][star= ttextbox][stoptextbox]}

\starttext

%\starttextbox[x=3D12pt,y=3D2= 0pt,width=3D768pt]

%\useexternalfigure[ador1][Ch= rysanthemum.jpg][width=3D768pt]

%\placefigure[here,force][]{n= one}{\externalfigure[ador1]}

%\stoptextbox

\starttextbox[x=3D195.3pt,y= =3D115.2pt,width=3D560.7pt]

\switchtotypeface[impact][48p= t]

\midaligned{Yo, First!}

\stoptextbox

\page[empty]

\starttextbox[x=3D447.6pt,y= =3D228pt,width=3D229.5pt]

\switchtotypeface[minion][14p= t]%

Title. First Last \\

Company \\

Street Address \\

City, State, ZIP

\stoptextbox

\starttextbox[x=3D85.2pt,y=3D= 228pt,width=3D229.5pt]

\switchtotypeface[minion][14p= t]%

Dear First,\\

\blank

Are you aware that now is the= {\bf winter of our discontent}? It's been made {\it glori}\color[red]{= \it ous} \color[red]{\bi sum}{\bi mer} by this son of York.\\

\blank

I say let's put it back t= he way it was. Are you with me, Last?\\

\blank

Good.\\

\blank

-pd

\stoptextbox

%\starttextbox[x=3D85.2pt,y= =3D62.4pt,width=3D229.5pt]

%\useexternalfigure[ador2][pd= -logo-nobg.eps][scale=3D245.37]

%\placefigure[here,force][pdl= ogo]{none}{\externalfigure[ador2]}

%\stoptextbox

\starttextbox[x=3D249.6pt,y= =3D62.4pt,width=3D298.8pt]

\switchtotypeface[myriad][20p= t]%

Peter Davis\\

Head Hoo-Ha\\

Hoo-Ha House, Inc.\\

123 Fourfivesix St.\\

Lake Placebo, NY 12345-6789

\stoptextbox

\page[empty]

\stoptext



--20cf3054a56bdefa6a049548d314-- --===============1472321996== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1472321996==--