From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94535 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: font size inside a \typesetbuffer Date: Mon, 25 Apr 2016 10:21:34 +0200 Message-ID: <571DD38E.5090003@gmail.com> References: <571C9EA2.3060102@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5908116425952755086==" X-Trace: ger.gmane.org 1461572538 6894 80.91.229.3 (25 Apr 2016 08:22:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Apr 2016 08:22:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 25 10:22:04 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aubmO-00060y-Ku for gctc-ntg-context-518@m.gmane.org; Mon, 25 Apr 2016 10:22:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A1129AD51; Mon, 25 Apr 2016 10:21:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FGoTiRUOVItm; Mon, 25 Apr 2016 10:21:35 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id CDBA8AD60; Mon, 25 Apr 2016 10:21:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AB0CCAD51 for ; Mon, 25 Apr 2016 10:21:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nSgi6qtx5J9M for ; Mon, 25 Apr 2016 10:21:34 +0200 (CEST) Original-Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 4AF38ACA3 for ; Mon, 25 Apr 2016 10:21:24 +0200 (CEST) Original-Received: by mail-wm0-f53.google.com with SMTP id e201so76761137wme.0 for ; Mon, 25 Apr 2016 01:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=6QxJZbggGYcgo8QPoF+kw05s3NinOT/u6ZtFtzJ5AXU=; b=PvHXQsMXQq/5thtp5Vm8HaTJhMZKpqO3Kk5uACIBFPFH9NUg1Y54VpH6xnUzZwR51t Iicg4DOM6KOhIlP1O9UXAa+9TiAkkP5oNqJchBx6NMVFzrrk+/CIHfEI8lim12AJN2/a zgFXwi5KSz/lDkbZIquNK5ifNZFjyvcUyQNu/q/wmG6c9fsL1gjZOHtba4VX7SKjPrbA G1n6JXy4FC1r+KjjC/UvmN1CpuISmnlxBSQmFEXKOQbP+LD1ser7pVteqiIzI2wJc9p5 +MjoLRHuYLraWpZS3bUVYG+fjDqqCvNHF32wLQUDChgtNOnzW1BxOpOUFco6mEE9JJEz E2Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=6QxJZbggGYcgo8QPoF+kw05s3NinOT/u6ZtFtzJ5AXU=; b=IB2IX7c31PRqNEDb84WadcPVFX/pFMTN93D6IcBtBPWM7N3wuJw4YUFQFUJNMQr3eO 5OeDQj8/oJfrzKiK/LLd84GnDCB4FstPbXpxoo6itfKEFsbOV4H1z5UHXIYOgsXJ7L7s nD+La1Eaoy6840nBPstRBqvCtMQO0mUlIZIgfiqaMGUID64ibi58+VfAys2malDNnyID DPv1rdglefE9VL6UxJUGolt4GgNMp2U1BRFGPi//3LMsWgTYtnMqZRm5g3LK8l3qwVeE 7ApWbCPhtvyjQ1vJhWg4niBzmda7OMy1RDrbsocG3DZW9hiPDkx7KWpnQE2XTCRIcOsn FNQw== X-Gm-Message-State: AOPr4FV/nnIwtHGgNr1F2x4Q89ZpOulWVijgkpyYsuOQE9aDz+5zi23GTyKURu7ND4XQgg== X-Received: by 10.194.234.101 with SMTP id ud5mr32142344wjc.34.1461572483340; Mon, 25 Apr 2016 01:21:23 -0700 (PDT) Original-Received: from keima.localdomain (x2f30abd.dyn.telefonica.de. [2.243.10.189]) by smtp.gmail.com with ESMTPSA id jp2sm22278336wjc.16.2016.04.25.01.21.21 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Apr 2016 01:21:22 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <571C9EA2.3060102@gmx.es> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:94535 Archived-At: This is a multi-part message in MIME format. --===============5908116425952755086== Content-Type: multipart/alternative; boundary="------------020907020202040407010408" This is a multi-part message in MIME format. --------------020907020202040407010408 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Pablo Rodriguez > 24. April 2016 um 12:23 > Dear list, > > I have the following sample: > > \startbuffer[buffer:inside] > \definefontfamily[mainface][rm][TeX Gyre Pagella] > \setupbodyfont[mainface, 17pt] > \starttext > \input zapf > \stoptext > \stopbuffer > \starttext > \typesetbuffer[buffer:inside] > \stoptext > > The issue I=E2=80=99m experiencing is that no mainface is selected if t= he font > size is specified in \setupbodyfont. > > Am I missing something or have I hit a bug? Your problem is unrelated to \typesetbuffer and can be reproduced with=20 the following example: \definefontfamily[mainface][rm][TeX Gyre Pagella] \starttext \setupbodyfont[mainface, 17pt] \input zapf \stoptext There are two solutions for this: 1. Use 17.3pt as fontsize because this is one of the predefined sizes. 2. Add \definebodyfont[17pt] at the begin of your document (should normally done by context itself when you use a undefined font size). Wolfgang --------------020907020202040407010408 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
24= .=20 April 2016 um 12:23
Dear list,

I hav= e=20 the following sample:

\startbuffer[buffer:inside]
=20 \definefontfamily[mainface][rm][TeX Gyre Pagella]
=20 \setupbodyfont[mainface, 17pt]
\starttext
\input=20 zapf
\stoptext
\stopbuffer
\starttext
=20 \typesetbuffer[buffer:inside]
\stoptext

The issue I=E2=80=99= m=20 experiencing is that no mainface is selected if the font
size is=20 specified in \setupbodyfont.

Am I missing something or have I hit a bug?
Your problem is unrelated to \typesetbuffer and can be reproduced with=20 the following example:

\definefontfamily[mainface][rm][TeX Gyre Pagella]

\starttext

\setupbodyfont[mainface, 17pt]

\input zapf

\stoptext


There are two solutions for this:

1. Use 17.3pt as fontsize because this is one of the predefined sizes.
2. Add \definebodyfont[17pt] at the begin of your document (should
=C2=A0=C2=A0 normally done by context itself when you use a undefined fon= t size).


Wolfgang
--------------020907020202040407010408-- --===============5908116425952755086== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============5908116425952755086==--