[NTG-context] Selecting fonts using the built-in simplefonts module

Wolfgang Schuster schuster.wolfgang at gmail.com
Sun Mar 29 23:16:17 CEST 2015


> Am 29.03.2015 um 22:44 schrieb Pavneet Arora <pavneet_arora at waroc.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?

Put the attached file (symbol-fontawsome.mkiv) from my last mail in the same folder as your document.

Wolfgang


More information about the ntg-context mailing list