From: Brian Landy <brian@landy.cx>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: problem with switchtobodyfont
Date: Tue, 05 Jun 2012 22:35:35 -0400 [thread overview]
Message-ID: <1728550F-AE89-4256-8E81-72300D2DDE6E@landy.cx> (raw)
Hi, I decided to give the latest minimals a test (I had been using 2012.01.16, updated to 2012.06.05 today), and noticed that switchtobodyfont no longer seems to work properly. Here is a small example:
\starttypescript [cleartype]
\definetypeface [\typescriptone] [rm] [serif] [constantia] [default]
\definetypeface [\typescriptone] [ss] [sans] [calibri] [default]
\stoptypescript<
\usetypescript[cleartype]%
\starttext
{\switchtobodyfont[cleartype,serif,24pt]should be serif\par}
{\switchtobodyfont[cleartype,sans,24pt]should be sans\par}
\stoptext
The problem appears to be applying in a font size the first time the font is loaded. For example, adding this line works:
% typescript
\starttext
{\switchtobodyfont[cleartype,serif]\switchtobodyfont[24pt]} % new line
{\switchtobodyfont[cleartype,serif,24pt]should be serif\par}
{\switchtobodyfont[cleartype,sans,24pt]should be sans\par}
\stoptext
The point sizes have to match for this to work.
It also works to add in \setupbodyfont[cleartype]; however, this isn’t helpful if there are multiple typescripts to use in the same document.
I didn’t notice any mention of this in the list (apologies if I overlooked it) so assume this is a bug?
Thanks!
Brian
___________________________________________________________________________________
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
___________________________________________________________________________________
reply other threads:[~2012-06-06 2:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1728550F-AE89-4256-8E81-72300D2DDE6E@landy.cx \
--to=brian@landy.cx \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).