From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58457 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: How to use musical symbols from a font Date: Thu, 29 Apr 2010 23:04:15 +0200 Message-ID: <1FC19150-9D40-4CEA-95C7-2514045AC8B4@boede.nl> References: <4BD9E3B2.3070306@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1272575072 14007 80.91.229.12 (29 Apr 2010 21:04:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Apr 2010 21:04:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 29 23:04:30 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O7auL-0003t0-LH for gctc-ntg-context-518@m.gmane.org; Thu, 29 Apr 2010 23:04:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E9063C9BA6; Thu, 29 Apr 2010 23:04:28 +0200 (CEST) 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 8l3fcNrbSr0Q; Thu, 29 Apr 2010 23:04:26 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E1959C9B91; Thu, 29 Apr 2010 23:04:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BA311C9B91 for ; Thu, 29 Apr 2010 23:04:23 +0200 (CEST) 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 nCylftatoj9Y for ; Thu, 29 Apr 2010 23:04:20 +0200 (CEST) Original-Received: from mars.digitpaint.nl (mars.digitpaint.nl [83.98.197.63]) by balder.ntg.nl (Postfix) with ESMTP id 6AE55C9B59 for ; Thu, 29 Apr 2010 23:04:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by mars.digitpaint.nl (Postfix) with ESMTP id 945201713D for ; Thu, 29 Apr 2010 23:02:03 +0200 (CEST) Original-Received: from mars.digitpaint.nl ([127.0.0.1]) by localhost (mail.digitpaint.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qWIfAFxvXhWU for ; Thu, 29 Apr 2010 23:02:03 +0200 (CEST) Original-Received: from [192.168.1.198] (a83-161-249-79.adsl.xs4all.nl [83.161.249.79]) by mars.digitpaint.nl (Postfix) with ESMTPA id 371381702F for ; Thu, 29 Apr 2010 23:02:03 +0200 (CEST) In-Reply-To: <4BD9E3B2.3070306@gmail.com> X-Mailer: Apple Mail (2.1078) 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:58457 Archived-At: Apparently the font is not found. So make sure that TeX can find the font. Probably you need to check whether the OSFONTDIR is set correctly. Otherwise copy the to a place e.g. texmf-local en run luatools --generate. I hop this helps. Willi On 29 Apr 2010, at 21:53, Vyatcheslav Yatskovsky wrote: > Hi, > > Thanks, Willi, for the idea, but I cannot get it to work. My version of the script > > \starttext > \definefontsynonym[Wingdings][Wingdings.ttf] > \definesymbol[box][\getglyph{Wingdings}{\char113}] > %\def\Check% > % {{\tfa\symbol[box]}} > > \symbol[box] > \stoptext > > > gives the following error (I have Wingdings.ttf in my Windows/Fonts folder): > > > !define font : forced type ttf of Wingdings not found > !define font : font with name Wingdings is not found > !define font : unknown font Wingdings, loading aborted > ! Font \thedefinedfont=Wingdings.ttf at 12pt not loadable: metric data not found or bad. > > \relax > \symbolicsizedfont ...cale \scaledfontsize \relax > \thedefinedfont > \getglyph #1#2->{\symbolicfont {#1} > \doifnumberelse {#2}\char \donothing #2} > \dodosymbol ...bol \csname \??ss :#1:#2\endcsname > \relax }\relax > \donormalsymbol ...bol \redosymbol \currentsymbol > \fi \fi > > \stoptext > l.8 \stoptext > > ? > >> >> The approach to using symbols could be done along the following line: >> >> >> \definefontsynonym[Dingbats][uzdr] >> \definesymbol[box][\getglyph{Dingbats}{\char113}] >> \def\Check% >> {{\tfa\symbol[box]}} > > > -- > Best Regards, > Vyatcheslav Yatskovsky > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________