* font size inside a \typesetbuffer
@ 2016-04-24 10:23 Pablo Rodriguez
2016-04-25 8:21 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2016-04-24 10:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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] 3+ messages in thread
* Re: font size inside a \typesetbuffer
2016-04-24 10:23 font size inside a \typesetbuffer Pablo Rodriguez
@ 2016-04-25 8:21 ` Wolfgang Schuster
2016-04-25 15:12 ` Pablo Rodriguez
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2016-04-25 8:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1021 bytes --]
> 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
[-- Attachment #1.2: Type: text/html, Size: 2149 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] 3+ messages in thread
* Re: font size inside a \typesetbuffer
2016-04-25 8:21 ` Wolfgang Schuster
@ 2016-04-25 15:12 ` Pablo Rodriguez
0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2016-04-25 15:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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] 3+ messages in thread
end of thread, other threads:[~2016-04-25 15:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-24 10:23 font size inside a \typesetbuffer Pablo Rodriguez
2016-04-25 8:21 ` Wolfgang Schuster
2016-04-25 15:12 ` Pablo Rodriguez
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).