From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54785 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Problem with font mapping Date: Thu, 26 Nov 2009 16:01:10 +0100 Message-ID: <4B0E9836.3070107@wxs.nl> References: <86d68cc30911250727xcbb007elc822b887a3d54c30@mail.gmail.com> <06A41F0E-364E-4F8C-B6F0-FA5A9EEACAD6@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1259247687 2350 80.91.229.12 (26 Nov 2009 15:01:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Nov 2009 15:01:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 26 16:01:18 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NDfqP-00053n-Q1 for gctc-ntg-context-518@m.gmane.org; Thu, 26 Nov 2009 16:01:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BFDC0C9C99; Thu, 26 Nov 2009 15:58:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5i6uaQ4CEMkU; Thu, 26 Nov 2009 15:58:22 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B06BEC9C95; Thu, 26 Nov 2009 15:58:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5E07EC9C95 for ; Thu, 26 Nov 2009 15:58:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 58IYsbMEzuiN for ; Thu, 26 Nov 2009 15:58:19 +0100 (CET) Original-Received: from mail.solcon.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id F0DB6C9C92 for ; Thu, 26 Nov 2009 15:58:18 +0100 (CET) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.2a3) with ESMTP id 7413-1713362 for ; Thu, 26 Nov 2009 16:00:05 +0100 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <06A41F0E-364E-4F8C-B6F0-FA5A9EEACAD6@googlemail.com> X-Authenticated-User: hagen@controller-9 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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:54785 Archived-At: Wolfgang Schuster wrote: > Am 25.11.2009 um 16:27 schrieb Mika Ritola: > >> Hello again, >> >> I seem to be running into all sorts of font problems. Now my document has suddenly turned bold. For example, running the following code results in "Test." being rendered in bold characters. > > A few things have changed in ConTeXt font mechanism and I'm going to adapt simplefonts > to the new code (will take a while) but there are now many new features available, > take for example the new spec-interface which could be used to write this: > > \starttypescript[Xserif][all][name] > > \definefontsynonym [Serif] [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-normal] [features=default] > \definefontsynonym [SerifItalic] [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-italic] [features=default] > \definefontsynonym [SerifSlanted] [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-italic] [features=default] > \definefontsynonym [SerifBold] [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-bold-normal] [features=default] > \definefontsynonym [SerifBoldItalic] [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-bold-italic] [features=default] > \definefontsynonym [SerifBoldSlanted] [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-bold-italic] [features=default] > \definefontsynonym [SerifCaps] [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-normal] [features=smallcaps] > > \stoptypescript \definefontsynonym[Serif][spec:\ctxlua{fonts.names.cleanname("\typescripttwo"}-normal-normal][features=default] I'll add \cleanfontname so that we can have \definefontsynonym[Serif][spec:\cleanfontname\typescripttwo-normal-normal][features=default] Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________