From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65373 Path: news.gmane.org!not-for-mail From: Thomas Floeren Newsgroups: gmane.comp.tex.context Subject: Re: \getscaledglyph Date: Thu, 20 Jan 2011 23:25:07 +0100 Message-ID: References: <003101cbb876$df30a530$9d91ef90$%floeren@boschung.com> <63348924-2CD0-4AD4-977E-25CCF7A4212F@boede.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1295562324 11352 80.91.229.12 (20 Jan 2011 22:25:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 Jan 2011 22:25:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 20 23:25:20 2011 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 1Pg2wS-0003lR-32 for gctc-ntg-context-518@m.gmane.org; Thu, 20 Jan 2011 23:25:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 70040CAA4F; Thu, 20 Jan 2011 23:25:19 +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 6gJE577l-n2o; Thu, 20 Jan 2011 23:25:15 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BF1E3CAA2C; Thu, 20 Jan 2011 23:25:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 78DBACAA2C for ; Thu, 20 Jan 2011 23:25:14 +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 fel6yMakCpqi for ; Thu, 20 Jan 2011 23:25:14 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 3E62ACAA23 for ; Thu, 20 Jan 2011 23:25:14 +0100 (CET) Original-Received: from asmtpout022.mac.com (asmtpout022.mac.com [17.148.16.97]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0KMPCGB019280 for ; Thu, 20 Jan 2011 23:25:13 +0100 Original-Received: from [10.0.1.3] (unknown [78.155.0.80]) by asmtp022.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LFC00I7HE9V9E80@asmtp022.mac.com> for ntg-context@ntg.nl; Thu, 20 Jan 2011 14:25:12 -0800 (PST) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2011-01-20_08:2011-01-20, 2011-01-20, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1010190000 definitions=main-1101200131 In-reply-to: <63348924-2CD0-4AD4-977E-25CCF7A4212F@boede.nl> X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=17.148.16.97; country=US; region=CA; city=Cupertino; postalcode=95014; latitude=37.3042; longitude=-122.0946; metrocode=807; areacode=408; http://maps.google.com/maps?q=37.3042,-122.0946&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05DVWpds3 - fd432568fb59 - 20110120 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:65373 Archived-At: Thank you, Willi, I wasn't aware of this nice font module! (btw, running it on ArialUnicode with 2 columns and 10pt produces 500 PDF p= ages and a peak memory usage of 1.2 GB!). I like the idea of using glyph names rather than unicode numbers. For my ac= tual purpose your suggestion works perfectly, with \fontchar{emptyset}. = Beside this there are many glyphs with only "math names" (the rightmost col= umn in the fnt-10 output). I couldn't make \fontchar work with these. For e= xample the fore-mentioned char "2300 works with \fontchar{uni2300} but not = with \fontchar{varnothing}. Is there a way to set these chars by their math name? Thomas On Jan 20, 2011, at 16:37, Willi Egger wrote: > Hi Thomas, > = > I had to do some work with regard to this issue recently. > = > What was mentioned on this list, is, that \fontchar is a command which wi= ll stay. > = > \setupbodyfont[Myfont,rm,12pt] > \definesymbol[Q.alt] [\fontchar{Q.alt}] > \def\Qa{\symbol[Q.alt]} > = > The easiest way to get a stable environment is to use the char-names from= the font. You can extract a table with all char-names with = > = > \usemodule[fnt-10] > \setupbodyfont[Myfont,rm,12pt] > \starttext > \ShowCompleteFont{Myfont.otf}{10pt}{1} % fontname, size,columns > % \ShowAllGlyphs {Myfont}{48pt}{4} % fontname, size,columns = > \stoptext > = > Kind regards > = > Willi > On 20 Jan 2011, at 08:51, Thomas Floeren wrote: > = >> Hi, >> = >> I did a rather huge update step from my working context 2010.09.29 to th= e actual beta. I noted that \getscaledglyph doesn=92t work anymore. = >> = >> I use it a lot for symbol insertions like this: >> = >> \definefontsynonym [ArialU] [name:ArialUnicodeMS] >> \definesymbol [Diameter] [\getscaledglyph{1.5}{ArialU}{\char"2300}] >> \def\Diam{\symbol[Diameter]} >> = >> \starttext >> hello \Diam\ goodbye >> \stoptext >> = >> = >> ( \getglyph seems to work as usual: \definesymbol [Diameter] [\tfb\getgl= yph{ArialU}{\char"2300}] ) >> = >> Should I better change my definitions or is it just a bug? >> = >> = >> = >> Thank you >> & Greetings >> Thomas >> = >> = >> MTXrun | current version: 2011.01.18 19:34 >> This is LuaTeX, Version beta-0.65.0-2010121316 >> = >> ________________________________________________________________________= ___________ >> If your question is of interest to others as well, please add an entry t= o the Wiki! >> = >> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-c= ontext >> 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-co= ntext > 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 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 ___________________________________________________________________________= ________