font size inside a \typesetbuffer
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
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’m experiencing is that no mainface is selected if the font size is specified in \setupbodyfont. Am I missing something or have I hit a bug? Many thanks for your help, Pablo -- http://www.ousia.tk
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Pablo Rodriguez mailto:oinos@gmx.es 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’m experiencing is that no mainface is selected if the 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 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
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
On 04/25/2016 10:21 AM, Wolfgang Schuster wrote: >> Pablo Rodriguez 24. April 2016 um 12:23 >> [...] >> The issue I’m experiencing is that no mainface is selected if the font >> size is specified in \setupbodyfont. >> >> Am I missing something or have I hit a bug? > [...] > 2. Add \definebodyfont[17pt] at the begin of your document (should > normally done by context itself when you use a undefined font size). Many thanks for your reply, Wolfgang. \definebodyfont works, but isn’t it a bug? Many thanks for your help, Pablo -- http://www.ousia.tk
participants (2)
-
Pablo Rodriguez
-
Wolfgang Schuster