From: Pavneet Arora <pavneet_arora@waroc.com>
To: Wolfgang Schuster <schuster.wolfgang@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Selecting fonts using the built-in simplefonts module
Date: Sun, 29 Mar 2015 16:44:44 -0400 [thread overview]
Message-ID: <20150329204443.GB30678@darjiling> (raw)
In-Reply-To: <4F197B16-5B9A-41CB-8E76-AD12C68D5F66@gmail.com>
Dear Wolfgang,
I am using:
ConTeXt ver: 2015.03.28 22:37 MKIV beta fmt: 2015.3.29 int: english/english
After installing fontawesome, and running the MWE that you had enclosed,
I get the following error:
fonts > symbols > library 'fontawesome' is unknown
And no symbols are output. 'fontawesome' is loaded:
$ mtxrun --script fonts --list --all --pattern=fontawesome
resolvers | trees | analyzing 'home:texmf'
resolvers | caching | skipping 'files' for 'home:texmf' from
'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/54be04d87dd160089f572b19cb5c97e9' (version mismatch)
fontawesome fontawesome /home/pavneet/.fonts/opentype/font-awesome-4.3.0/fonts/FontAwesome.otf
fontawesomenormal fontawesome /home/pavneet/.fonts/opentype/font-awesome-4.3.0/fonts/FontAwesome.otf
fontawesomeregular fontawesome /home/pavneet/.fonts/opentype/font-awesome-4.3.0/fonts/FontAwesome.otf
Also, the '\mysymbol' directive results in an error:
tex error > error on line 24 in file test2.tex: ! Argument of \65> has an extra }
<inserted text> \par <to be read again> }
\symb_place_indeed ...name \??symbol #1\endcsname \relax \endgroup
\symb_place_retry ...name \symb_place_indeed {:#1}
\else #1\fi
\symb_place_normal_c ...lace_retry \currentsymbol \fi
\symb_place_normal_b ...else \symb_place_normal_c \fi ...
l.24 \symbol[mysymbol]
14 \definesymbol
15 [mysymbol]
16 [\SymbolFrame{\directsymbol{fontawesome}{question}}]
17
18 \starttext
19
20 \startlines
21 \symbol[fontawesome][question]
22 \symbol[fontawesome][question-circle]
23 \framed[strut=no,width=1em,height=1em,background=color,backgroundcolor=black,corner=round,radius=.5ex,foregroundcolor=white]{\symbol[fontawesome][question]}
24 >> \symbol[mysymbol]
25 \stoplines
26
27 \stoptext
28
What might be the problem?
Many thanks.
On 29Mar15, Wolfgang Schuster wrote:
> > 2. How does one switch fonts in-line for small snippets of text? I
> > used to use '{\simplefont[heydingsicons]
q}123.345.67890', but this > > now results in an error.
> >
> > tex error > error on line 7 in file virtual://buffer.noname.1: ! Undefined control sequence
> >
> > l.7 {\simplefont [heydingsicons] q}~123.456.7890 {\simplefont[heydingsicons..
>
> When you use a symbol font define a command for it with \definesymbol and access it with \symbol.
>
> The example below uses the Font Awesome [1] font for the symbols (the symbols are defined in the attached file).
>
> \usesymbols[fontawesome]
>
> \defineframed
> [SymbolFrame]
> [strut=no,
> width=1em,
> height=1em,
> background=color,
> backgroundcolor=black,
> corner=round,
> radius=.5ex,
> foregroundcolor=white]
>
> \definesymbol
> [mysymbol]
> [\SymbolFrame{\directsymbol{fontawesome}{question}}]
>
> \starttext
>
> \startlines
> \symbol[fontawesome][question]
> \symbol[fontawesome][question-circle]
> \framed[strut=no,width=1em,height=1em,background=color,backgroundcolor=black,corner=round,radius=.5ex,foregroundcolor=white]{\symbol[fontawesome][question]}
> \symbol[mysymbol]
> \stoplines
>
> \stoptext
--
----
Pavneet Arora m: 647.406.6843
Waroc Informatik t: 416.937.9276
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2015-03-29 20:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-29 12:40 Pavneet Arora
2015-03-29 15:56 ` Jörg Weger
2015-03-29 16:52 ` Pablo Rodriguez
2015-03-29 19:38 ` Pavneet Arora
2015-03-29 16:37 ` Pablo Rodriguez
2015-03-29 17:47 ` Wolfgang Schuster
2015-03-29 18:33 ` Jörg Weger
2015-03-29 19:31 ` Wolfgang Schuster
2015-03-29 20:29 ` Jörg Weger
2015-03-29 20:57 ` Wolfgang Schuster
2015-03-29 20:44 ` Pavneet Arora [this message]
2015-03-29 21:16 ` Wolfgang Schuster
[not found] <mailman.527.1427657514.2410.ntg-context@ntg.nl>
2015-03-29 19:45 ` Pavneet Arora
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=20150329204443.GB30678@darjiling \
--to=pavneet_arora@waroc.com \
--cc=ntg-context@ntg.nl \
--cc=schuster.wolfgang@gmail.com \
/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).