* Re: \getscaledglyph [not found] <003101cbb876$df30a530$9d91ef90$@floeren@boschung.com> @ 2011-01-20 15:37 ` Willi Egger 2011-01-20 22:25 ` \getscaledglyph Thomas Floeren 0 siblings, 1 reply; 5+ messages in thread From: Willi Egger @ 2011-01-20 15:37 UTC (permalink / raw) To: thomas.floeren, mailing list for ConTeXt users 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 will 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 the actual beta. I noted that \getscaledglyph doesn’t 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\getglyph{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 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \getscaledglyph 2011-01-20 15:37 ` \getscaledglyph Willi Egger @ 2011-01-20 22:25 ` Thomas Floeren 2011-01-21 8:50 ` \getscaledglyph Hans Hagen 0 siblings, 1 reply; 5+ messages in thread From: Thomas Floeren @ 2011-01-20 22:25 UTC (permalink / raw) To: mailing list for ConTeXt users 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 pages and a peak memory usage of 1.2 GB!). I like the idea of using glyph names rather than unicode numbers. For my actual purpose your suggestion works perfectly, with \fontchar{emptyset}. Beside this there are many glyphs with only "math names" (the rightmost column in the fnt-10 output). I couldn't make \fontchar work with these. For example 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 will 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 the actual beta. I noted that \getscaledglyph doesn’t 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\getglyph{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 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \getscaledglyph 2011-01-20 22:25 ` \getscaledglyph Thomas Floeren @ 2011-01-21 8:50 ` Hans Hagen 2011-01-21 11:24 ` \getscaledglyph Thomas Floeren 0 siblings, 1 reply; 5+ messages in thread From: Hans Hagen @ 2011-01-21 8:50 UTC (permalink / raw) To: mailing list for ConTeXt users On 20-1-2011 11:25, Thomas Floeren wrote: > 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 pages and a peak memory usage of 1.2 GB!). > > I like the idea of using glyph names rather than unicode numbers. For my actual purpose your suggestion works perfectly, with \fontchar{emptyset}. > > Beside this there are many glyphs with only "math names" (the rightmost column in the fnt-10 output). I couldn't make \fontchar work with these. For example 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? \varnothing ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \getscaledglyph 2011-01-21 8:50 ` \getscaledglyph Hans Hagen @ 2011-01-21 11:24 ` Thomas Floeren 0 siblings, 0 replies; 5+ messages in thread From: Thomas Floeren @ 2011-01-21 11:24 UTC (permalink / raw) To: 'mailing list for ConTeXt users' > -----Original Message----- > From: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@ntg.nl] On > Behalf Of Hans Hagen > Sent: Friday, January 21, 2011 9:50 AM > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] \getscaledglyph > > On 20-1-2011 11:25, Thomas Floeren wrote: > > 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 pages and a peak memory usage of 1.2 GB!). > > > > I like the idea of using glyph names rather than unicode numbers. For > my actual purpose your suggestion works perfectly, with > \fontchar{emptyset}. > > > > Beside this there are many glyphs with only "math names" (the rightmost > column in the fnt-10 output). I couldn't make \fontchar work with these. > For example 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? > > \varnothing > > so simple ;) Thank you ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* \getscaledglyph @ 2011-01-20 7:51 Thomas Floeren 0 siblings, 0 replies; 5+ messages in thread From: Thomas Floeren @ 2011-01-20 7:51 UTC (permalink / raw) To: 'mailing list for ConTeXt users' Hi, I did a rather huge update step from my working context 2010.09.29 to the actual beta. I noted that \getscaledglyph doesn’t 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\getglyph{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 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-01-21 11:24 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <003101cbb876$df30a530$9d91ef90$@floeren@boschung.com> 2011-01-20 15:37 ` \getscaledglyph Willi Egger 2011-01-20 22:25 ` \getscaledglyph Thomas Floeren 2011-01-21 8:50 ` \getscaledglyph Hans Hagen 2011-01-21 11:24 ` \getscaledglyph Thomas Floeren 2011-01-20 7:51 \getscaledglyph Thomas Floeren
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).