From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50294 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: New module - mkiv font loading Date: Tue, 12 May 2009 09:47:53 +0200 Message-ID: <31A98C5C-4E6E-453D-8513-D9E487BB5503@gmail.com> References: <21CC4ADE-574E-48D5-9365-A6D1CCD00B68@gmail.com> <68bfdc900905110541n2b172f49m2f8e50a42e1839a2@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242114575 18975 80.91.229.12 (12 May 2009 07:49:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2009 07:49:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 12 09:49:26 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1M3mjt-0003iD-C3 for gctc-ntg-context-518@m.gmane.org; Tue, 12 May 2009 09:49:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 382921FED2; Tue, 12 May 2009 09:49:23 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23142-07; Tue, 12 May 2009 09:48:43 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D0BCB1FEC6; Tue, 12 May 2009 09:48:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 595C31FEC6 for ; Tue, 12 May 2009 09:48:41 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02668-01 for ; Tue, 12 May 2009 09:48:31 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by ronja.ntg.nl (Postfix) with ESMTP id 173A71FE67 for ; Tue, 12 May 2009 09:48:31 +0200 (CEST) Original-Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by filter1-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4C7mTvx015390 for ; Tue, 12 May 2009 09:48:30 +0200 Original-Received: by an-out-0708.google.com with SMTP id c2so1863116anc.29 for ; Tue, 12 May 2009 00:48:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=aeHCVw5MjG+E54IMuYwfVsowH+RSoJj+jYKZzuksFrE=; b=tLGeoKTdTmyF45TQ9phWrvj0kzCSaaODfd0CTeR/M0uFljcJsb+SKysjqJskH4WiJK NA9YOfTKzcW+GOx/nCvZ2Fj0HkAceR75oZwBYUCvHUWsfHGSbP5R7cL+fS7A/qe9p/pw ELoy1TlJlXwQ94HiY/4Z1cif1V+NTetqqiZEo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=AclagsCnzWsfP0N3+kF3DfR+XqUc328SwuTVk9eg87Uw8wxQhaBbXoDqC+VF6A1UtZ PtNbZM41205KHOds2HdY9kCnhLLStyiLQ64g+1Kyo4TW5QwXq4q6Ty/Urqxl2CzAtkKa PCSO2HK3t+OzBYGJISxIXpZ+P11u3CiqS6qXg= Original-Received: by 10.101.71.3 with SMTP id y3mr18660326ank.158.1242114508356; Tue, 12 May 2009 00:48:28 -0700 (PDT) Original-Received: from ?10.40.23.35? ([82.113.121.145]) by mx.google.com with ESMTPS id d12sm5517349and.3.2009.05.12.00.48.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 12 May 2009 00:48:27 -0700 (PDT) In-Reply-To: <68bfdc900905110541n2b172f49m2f8e50a42e1839a2@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.132.241; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 223594905 - 15283ab882da - 20090512 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:50294 Archived-At: Am 11.05.2009 um 14:41 schrieb Yue Wang: > Hi Wolfgang: > > nice script. > > Can the module meet my needs discussed in > http://www.ntg.nl/pipermail/ntg-context/2009/040831.html ? > or is it possible to extend the support to xetex? When you take care about font switching in your module it's easy, large part of the code can be left out because XeTeX can find the regular/italic/... styles itself. \unprotect \def\setmainfont[#1]{\definetypeface[simplefonts][rm][Xserif][#1] [default]} \def\setsansfont[#1]{\definetypeface[simplefonts][ss][Xsans] [#1] [default]} \def\setmonofont[#1]{\definetypeface[simplefonts][tt][Xmono] [#1] [default]} \appendtoks\setupbodyfont[simplefonts]\to\everystarttext \protect \setmainfont[Times New Roman] \setsansfont[Arial] \setmonofont[Courier New] \starttext \rm\tf roman \it italic \bf bold \bi bolditalic \ss\tf roman \it italic \bf bold \bi bolditalic \tt\tf roman \it italic \bf bold \bi bolditalic \stoptext Wolfgang ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________