ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Thomas Floeren <thomas.floeren@mac.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \getscaledglyph
Date: Thu, 20 Jan 2011 23:25:07 +0100	[thread overview]
Message-ID: <BE2316DC-0EB4-4542-B449-7ECF681D5A36@mac.com> (raw)
In-Reply-To: <63348924-2CD0-4AD4-977E-25CCF7A4212F@boede.nl>

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
___________________________________________________________________________________


  reply	other threads:[~2011-01-20 22:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <003101cbb876$df30a530$9d91ef90$@floeren@boschung.com>
2011-01-20 15:37 ` \getscaledglyph Willi Egger
2011-01-20 22:25   ` Thomas Floeren [this message]
2011-01-21  8:50     ` \getscaledglyph Hans Hagen
2011-01-21 11:24       ` \getscaledglyph Thomas Floeren
2011-01-20  7:51 \getscaledglyph Thomas Floeren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BE2316DC-0EB4-4542-B449-7ECF681D5A36@mac.com \
    --to=thomas.floeren@mac.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).