From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76713 Path: news.gmane.org!not-for-mail From: Brian Landy Newsgroups: gmane.comp.tex.context Subject: problem with switchtobodyfont Date: Tue, 05 Jun 2012 22:35:35 -0400 Message-ID: <1728550F-AE89-4256-8E81-72300D2DDE6E@landy.cx> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1338950171 23117 80.91.229.3 (6 Jun 2012 02:36:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Jun 2012 02:36:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 06 04:36:08 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sc66O-0004J3-Iv for gctc-ntg-context-518@m.gmane.org; Wed, 06 Jun 2012 04:36:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0E2B1101E2; Wed, 6 Jun 2012 04:36:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id svcdemdD6HYi; Wed, 6 Jun 2012 04:36:02 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5CB52101DF; Wed, 6 Jun 2012 04:36:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C8F4E101DF for ; Wed, 6 Jun 2012 04:36:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CW0v9T9PhCpL for ; Wed, 6 Jun 2012 04:35:59 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 7F9FB101DD for ; Wed, 6 Jun 2012 04:35:59 +0200 (CEST) Original-Received: from vms173005pub.verizon.net (vms173005pub.verizon.net [206.46.173.5]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q562ZvgV020221 for ; Wed, 6 Jun 2012 04:35:58 +0200 Original-Received: from percy.landy.cx ([unknown] [96.239.22.18]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0M56001AZCJCUKH0@vms173005.mailsrvcs.net> for ntg-context@ntg.nl; Tue, 05 Jun 2012 21:35:37 -0500 (CDT) Original-Received: from localhost (localhost [127.0.0.1]) by percy.landy.cx (Postfix) with ESMTP id A1746164D4E0 for ; Tue, 05 Jun 2012 22:35:36 -0400 (EDT) Original-Received: from percy.landy.cx ([127.0.0.1]) by localhost (percy.landy.cx [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DFDCdDIJ55Am for ; Tue, 05 Jun 2012 22:35:35 -0400 (EDT) Original-Received: from landlord.landy.cx (landlord.landy.cx [192.168.170.20]) by percy.landy.cx (Postfix) with ESMTPSA id AA1CD164D4D7 for ; Tue, 05 Jun 2012 22:35:35 -0400 (EDT) X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=206.46.173.5; country=US; latitude=38.0000; longitude=-97.0000; http://maps.google.com/maps?q=38.0000,-97.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QHiOzV7S - 870ba4e3a36c - 20120606 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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:76713 Archived-At: 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 long= er seems to work properly. Here is a small example: \starttypescript [cleartype] \definetypeface [\typescriptone] [rm] [serif] [constantia] [defa= ult] \definetypeface [\typescriptone] [ss] [sans] [calibri] [defa= ult] \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 i= s 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=92t he= lpful if there are multiple typescripts to use in the same document. I didn=92t notice any mention of this in the list (apologies if I overlooke= d it) so assume this is a bug? Thanks! Brian = ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________