ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Vyatcheslav Yatskovsky <yatskovsky@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: How to use musical symbols from a font
Date: Thu, 29 Apr 2010 22:53:22 +0300	[thread overview]
Message-ID: <4BD9E3B2.3070306@gmail.com> (raw)
In-Reply-To: <mailman.777.1272527060.4277.ntg-context@ntg.nl>

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.
<to be read again>
                    \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
<to be read again>
                    \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
___________________________________________________________________________________


       reply	other threads:[~2010-04-29 19:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.777.1272527060.4277.ntg-context@ntg.nl>
2010-04-29 19:53 ` Vyatcheslav Yatskovsky [this message]
2010-04-29 21:04   ` Willi Egger
     [not found] <mailman.789.1272575065.4277.ntg-context@ntg.nl>
2010-04-29 21:27 ` Vyatcheslav Yatskovsky
     [not found] <mailman.754.1272384331.4277.ntg-context@ntg.nl>
2010-04-27 21:35 ` Vyatcheslav Yatskovsky
2010-04-28 20:46   ` Willi Egger

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=4BD9E3B2.3070306@gmail.com \
    --to=yatskovsky@gmail.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).