ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Font Awesome (again)
@ 2018-10-07 13:26 Aditya Mahajan
  2018-10-07 13:43 ` Wolfgang Schuster
  2018-10-07 16:29 ` Ulrike Fischer
  0 siblings, 2 replies; 13+ messages in thread
From: Aditya Mahajan @ 2018-10-07 13:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

There is a FontAwesome.otf file that is distributed with ConTeXt minimals. 
Does anyone know what version (4 or 5) of the font it is? I am asking 
because the names of the symbols used in the font do not match those on 
the font-awesome website. For example, using

\showsymbolset[fontawesome]

I get that the symbol for "utensils" 
(https://fontawesome.com/icons/utensils?style=solid) is actually mapped to 
"food" in ConTeXt. Since the names of the symbols are now taken from the 
font, my guess is that the distribution has an old version of the font 
(also because it is a single font rather than three).

Would it make sense to update the fonts in the distribution? If not, then 
simply remove the old version of the fonts?

Also, don't we need to update the symb-imp-fontawesome.mkiv file to work 
with the new symbols. Font awesome has split the fonts into three
(https://fontawesome.com/how-to-use/on-the-desktop/setup/getting-started):
Solid, Regular, and Brands. (There are also pro version of the fonts). The 
simplest way to use them will be to have three symbolsets (fontawesome, 
fontawesome-solid, and fontawesome-brands), where the names are taken from 
the fonts.

In the meanwhile, Hraban has painstakenly written out the mappings by 
hand, but the automatic mapping might be simpler (and more future proof).
https://github.com/fiee/ConTeXt/blob/master/symbols/symb-awesome5.mkiv

Thanks,
Aditya

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Font Awesome (again)
  2018-10-07 13:26 Font Awesome (again) Aditya Mahajan
@ 2018-10-07 13:43 ` Wolfgang Schuster
  2018-10-07 14:19   ` Hans Hagen
                     ` (2 more replies)
  2018-10-07 16:29 ` Ulrike Fischer
  1 sibling, 3 replies; 13+ messages in thread
From: Wolfgang Schuster @ 2018-10-07 13:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Aditya Mahajan



Aditya Mahajan schrieb am 07.10.18 um 15:26:
> Hi,
>
> There is a FontAwesome.otf file that is distributed with ConTeXt 
> minimals. Does anyone know what version (4 or 5) of the font it is? I 
> am asking because the names of the symbols used in the font do not 
> match those on the font-awesome website. For example, using
>
> \showsymbolset[fontawesome]

The distribution includes version 4.7.

> I get that the symbol for "utensils" 
> (https://fontawesome.com/icons/utensils?style=solid) is actually 
> mapped to "food" in ConTeXt. Since the names of the symbols are now 
> taken from the font, my guess is that the distribution has an old 
> version of the font (also because it is a single font rather than three).
>
> Would it make sense to update the fonts in the distribution? If not, 
> then simply remove the old version of the fonts?
>
> Also, don't we need to update the symb-imp-fontawesome.mkiv file to 
> work with the new symbols. Font awesome has split the fonts into three
> (https://fontawesome.com/how-to-use/on-the-desktop/setup/getting-started): 
>
> Solid, Regular, and Brands. (There are also pro version of the fonts). 
> The simplest way to use them will be to have three symbolsets 
> (fontawesome, fontawesome-solid, and fontawesome-brands), where the 
> names are taken from the fonts.
>
> In the meanwhile, Hraban has painstakenly written out the mappings by 
> hand, but the automatic mapping might be simpler (and more future proof).
> https://github.com/fiee/ConTeXt/blob/master/symbols/symb-awesome5.mkiv

While I have no problem replacing the old symbols you can support both 
when you use new set names for the new version (even for the regular style).


\definefontsynonym [FontAwesomeBrands] 
[file:fontawesome5brandsregular400.otf]
\definefontsynonym [FontAwesomeRegular] 
[file:fontawesome5freeregular400.otf]
\definefontsynonym [FontAwesomeSolid] [file:fontawesome5freesolid900.otf]

\startsymbolset [fontawesome-brands] [font=FontAwesomeBrands]
   % Font Awesome Brands
\stopsymbolset

\startsymbolset [fontawesome-regular] [font=FontAwesomeRegular]
   % Font Awesome Regular
\stopsymbolset

\startsymbolset [fontawesome-solid] [font=FontAwesomeSolid]
   % Font Awesome Solid
\stopsymbolset

\starttext

\startnamedsection [title] [title={Font Awesome Brands}]
   \showsymbolset [fontawesome-brands]
\stopnamedsection

\startnamedsection [title] [title={Font Awesome Regular}]
   \showsymbolset [fontawesome-regular]
\stopnamedsection

\startnamedsection [title] [title={Font Awesome Solid}]
   \showsymbolset [fontawesome-solid]
\stopnamedsection

\stoptext


Wolfgang
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Font Awesome (again)
  2018-10-07 13:43 ` Wolfgang Schuster
@ 2018-10-07 14:19   ` Hans Hagen
  2018-10-07 15:25     ` Alan Braslau
  2018-10-07 15:39   ` Aditya Mahajan
  2018-11-01 11:04   ` Mari Voipio
  2 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2018-10-07 14:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Wolfgang Schuster, Aditya Mahajan

On 10/7/2018 3:43 PM, Wolfgang Schuster wrote:
> 
> 
> Aditya Mahajan schrieb am 07.10.18 um 15:26:
>> Hi,
>>
>> There is a FontAwesome.otf file that is distributed with ConTeXt 
>> minimals. Does anyone know what version (4 or 5) of the font it is? I 
>> am asking because the names of the symbols used in the font do not 
>> match those on the font-awesome website. For example, using
>>
>> \showsymbolset[fontawesome]
> 
> The distribution includes version 4.7.
> 
>> I get that the symbol for "utensils" 
>> (https://fontawesome.com/icons/utensils?style=solid) is actually 
>> mapped to "food" in ConTeXt. Since the names of the symbols are now 
>> taken from the font, my guess is that the distribution has an old 
>> version of the font (also because it is a single font rather than three).
>>
>> Would it make sense to update the fonts in the distribution? If not, 
>> then simply remove the old version of the fonts?
>>
>> Also, don't we need to update the symb-imp-fontawesome.mkiv file to 
>> work with the new symbols. Font awesome has split the fonts into three
>> (https://fontawesome.com/how-to-use/on-the-desktop/setup/getting-started): 
>>
>> Solid, Regular, and Brands. (There are also pro version of the fonts). 
>> The simplest way to use them will be to have three symbolsets 
>> (fontawesome, fontawesome-solid, and fontawesome-brands), where the 
>> names are taken from the fonts.
>>
>> In the meanwhile, Hraban has painstakenly written out the mappings by 
>> hand, but the automatic mapping might be simpler (and more future proof).
>> https://github.com/fiee/ConTeXt/blob/master/symbols/symb-awesome5.mkiv
> 
> While I have no problem replacing the old symbols you can support both 
> when you use new set names for the new version (even for the regular 
> style).
> 
> 
> \definefontsynonym [FontAwesomeBrands] 
> [file:fontawesome5brandsregular400.otf]
> \definefontsynonym [FontAwesomeRegular] 
> [file:fontawesome5freeregular400.otf]
> \definefontsynonym [FontAwesomeSolid] [file:fontawesome5freesolid900.otf]
> 
> \startsymbolset [fontawesome-brands] [font=FontAwesomeBrands]
>    % Font Awesome Brands
> \stopsymbolset
> 
> \startsymbolset [fontawesome-regular] [font=FontAwesomeRegular]
>    % Font Awesome Regular
> \stopsymbolset
> 
> \startsymbolset [fontawesome-solid] [font=FontAwesomeSolid]
>    % Font Awesome Solid
> \stopsymbolset
> 
> \starttext
> 
> \startnamedsection [title] [title={Font Awesome Brands}]
>    \showsymbolset [fontawesome-brands]
> \stopnamedsection
> 
> \startnamedsection [title] [title={Font Awesome Regular}]
>    \showsymbolset [fontawesome-regular]
> \stopnamedsection
> 
> \startnamedsection [title] [title={Font Awesome Solid}]
>    \showsymbolset [fontawesome-solid]
> \stopnamedsection
> 
> \stoptext
hm, one of these projects that when it got some reasonable user base 
went 'pro', collects money as kick start which looks proffitable enough 
to keep all open, but then goes for a limited free version to play nice, 
and go for a subscription model (so lock-in) ... some fashion in 
(pseudo) open source ... pretty confusing too (hopefully Hraban got a 
live long pro license for free)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Font Awesome (again)
  2018-10-07 14:19   ` Hans Hagen
@ 2018-10-07 15:25     ` Alan Braslau
  2018-10-07 15:58       ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: Alan Braslau @ 2018-10-07 15:25 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

On Sun, 7 Oct 2018 16:19:13 +0200
Hans Hagen <j.hagen@xs4all.nl> wrote:

> hm, one of these projects that when it got some reasonable user base 
> went 'pro', collects money as kick start which looks proffitable enough 
> to keep all open, but then goes for a limited free version to play nice, 
> and go for a subscription model (so lock-in) ... some fashion in 
> (pseudo) open source ... pretty confusing too (hopefully Hraban got a 
> live long pro license for free)

The community offers the 'Pro' version of ConTeXt for free...

;-)
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Font Awesome (again)
  2018-10-07 13:43 ` Wolfgang Schuster
  2018-10-07 14:19   ` Hans Hagen
@ 2018-10-07 15:39   ` Aditya Mahajan
  2018-10-07 15:56     ` Hans Hagen
  2018-11-01 11:04   ` Mari Voipio
  2 siblings, 1 reply; 13+ messages in thread
From: Aditya Mahajan @ 2018-10-07 15:39 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 2926 bytes --]

On Sun, 7 Oct 2018, Wolfgang Schuster wrote:

> Aditya Mahajan schrieb am 07.10.18 um 15:26:
>> Hi,
>> 
>> There is a FontAwesome.otf file that is distributed with ConTeXt 
>> minimals. Does anyone know what version (4 or 5) of the font it is? I am 
>> asking because the names of the symbols used in the font do not match 
>> those on the font-awesome website. For example, using
>> 
>> \showsymbolset[fontawesome]
>
> The distribution includes version 4.7.
>
>> I get that the symbol for "utensils" 
>> (https://fontawesome.com/icons/utensils?style=solid) is actually mapped 
>> to "food" in ConTeXt. Since the names of the symbols are now taken from 
>> the font, my guess is that the distribution has an old version of the 
>> font (also because it is a single font rather than three).
>> 
>> Would it make sense to update the fonts in the distribution? If not, then 
>> simply remove the old version of the fonts?
>> 
>> Also, don't we need to update the symb-imp-fontawesome.mkiv file to work 
>> with the new symbols. Font awesome has split the fonts into three
>> (https://fontawesome.com/how-to-use/on-the-desktop/setup/getting-started): 
>> Solid, Regular, and Brands. (There are also pro version of the fonts). 
>> The simplest way to use them will be to have three symbolsets 
>> (fontawesome, fontawesome-solid, and fontawesome-brands), where the names 
>> are taken from the fonts.
>> 
>> In the meanwhile, Hraban has painstakenly written out the mappings by 
>> hand, but the automatic mapping might be simpler (and more future proof).
>> https://github.com/fiee/ConTeXt/blob/master/symbols/symb-awesome5.mkiv
>
> While I have no problem replacing the old symbols you can support both when 
> you use new set names for the new version (even for the regular style).
>
>
> \definefontsynonym [FontAwesomeBrands] 
> [file:fontawesome5brandsregular400.otf]
> \definefontsynonym [FontAwesomeRegular] 
> [file:fontawesome5freeregular400.otf]
> \definefontsynonym [FontAwesomeSolid] [file:fontawesome5freesolid900.otf]
>
> \startsymbolset [fontawesome-brands] [font=FontAwesomeBrands]
>   % Font Awesome Brands
> \stopsymbolset
>
> \startsymbolset [fontawesome-regular] [font=FontAwesomeRegular]
>   % Font Awesome Regular
> \stopsymbolset
>
> \startsymbolset [fontawesome-solid] [font=FontAwesomeSolid]
>   % Font Awesome Solid
> \stopsymbolset
>
> \starttext
>
> \startnamedsection [title] [title={Font Awesome Brands}]
>   \showsymbolset [fontawesome-brands]
> \stopnamedsection
>
> \startnamedsection [title] [title={Font Awesome Regular}]
>   \showsymbolset [fontawesome-regular]
> \stopnamedsection
>
> \startnamedsection [title] [title={Font Awesome Solid}]
>   \showsymbolset [fontawesome-solid]
> \stopnamedsection
>
> \stoptext

This sounds reasonable. Could we add these definitions to 
symb-imp-fontawesome?

Thanks,
Aditya

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Font Awesome (again)
  2018-10-07 15:39   ` Aditya Mahajan
@ 2018-10-07 15:56     ` Hans Hagen
  0 siblings, 0 replies; 13+ messages in thread
From: Hans Hagen @ 2018-10-07 15:56 UTC (permalink / raw)
  To: Aditya Mahajan, mailing list for ConTeXt users

On 10/7/2018 5:39 PM, Aditya Mahajan wrote:
> On Sun, 7 Oct 2018, Wolfgang Schuster wrote:

> This sounds reasonable. Could we add these definitions to 
> symb-imp-fontawesome?
sure

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Font Awesome (again)
  2018-10-07 15:25     ` Alan Braslau
@ 2018-10-07 15:58       ` Hans Hagen
  0 siblings, 0 replies; 13+ messages in thread
From: Hans Hagen @ 2018-10-07 15:58 UTC (permalink / raw)
  To: Alan Braslau; +Cc: mailing list for ConTeXt users

On 10/7/2018 5:25 PM, Alan Braslau wrote:
> On Sun, 7 Oct 2018 16:19:13 +0200
> Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
>> hm, one of these projects that when it got some reasonable user base
>> went 'pro', collects money as kick start which looks proffitable enough
>> to keep all open, but then goes for a limited free version to play nice,
>> and go for a subscription model (so lock-in) ... some fashion in
>> (pseudo) open source ... pretty confusing too (hopefully Hraban got a
>> live long pro license for free)
> 
> The community offers the 'Pro' version of ConTeXt for free...
And context group members also get the 'Enterprise' version for free ...

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Font Awesome (again)
  2018-10-07 13:26 Font Awesome (again) Aditya Mahajan
  2018-10-07 13:43 ` Wolfgang Schuster
@ 2018-10-07 16:29 ` Ulrike Fischer
  2018-10-07 19:39   ` Aditya Mahajan
  1 sibling, 1 reply; 13+ messages in thread
From: Ulrike Fischer @ 2018-10-07 16:29 UTC (permalink / raw)
  To: ntg-context

Am Sun, 7 Oct 2018 09:26:11 -0400 (EDT) schrieb Aditya Mahajan:

> Would it make sense to update the fonts in the distribution?

I didn't quite follow the discussion and the suggested code, but
from a similar discussion for latex I know that the symbols in
fontawesome 4 and 5 looks different (that's why there is an explicit
fontawesome5 package in latex).


-- 
Ulrike Fischer 
https://www.troubleshooting-tex.de/

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Font Awesome (again)
  2018-10-07 16:29 ` Ulrike Fischer
@ 2018-10-07 19:39   ` Aditya Mahajan
  0 siblings, 0 replies; 13+ messages in thread
From: Aditya Mahajan @ 2018-10-07 19:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, 7 Oct 2018, Ulrike Fischer wrote:

> Am Sun, 7 Oct 2018 09:26:11 -0400 (EDT) schrieb Aditya Mahajan:
>
>> Would it make sense to update the fonts in the distribution?
>
> I didn't quite follow the discussion and the suggested code, but
> from a similar discussion for latex I know that the symbols in
> fontawesome 4 and 5 looks different (that's why there is an explicit
> fontawesome5 package in latex).

Then Wolfgang's solution makes even more sense as it is possible to use 
BOTH v4 and v5 of the font.

Aditya
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Font Awesome (again)
  2018-10-07 13:43 ` Wolfgang Schuster
  2018-10-07 14:19   ` Hans Hagen
  2018-10-07 15:39   ` Aditya Mahajan
@ 2018-11-01 11:04   ` Mari Voipio
  2018-11-01 11:45     ` Wolfgang Schuster
  2 siblings, 1 reply; 13+ messages in thread
From: Mari Voipio @ 2018-11-01 11:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 4022 bytes --]

Hi,

I'm trying to get Font Awesome 5 to work for me, but it only almost does.

Wolfgang's code works and I get a nice list of symbols for all three
variations, so ConTeXt obviously finds the font. But when I try to use
a single symbol, ConTeXt prints the symbol name instead of the symbol.
There must be something I'm overlooking, but I don't know what. Wiki
wasn't very helpful, although we do have an entry on symbols (Font
Awesome, on the other hand, isn't mentioned anywhere on the wiki).

I tried with \symbol[fontawesome-regular][credit-card] (at the end of
my file) and a few variants thereof, but couldn't get the symbol. What
am I doing wrong? What have I missed?

TIA,
Mari
On Sun, Oct 7, 2018 at 4:45 PM Wolfgang Schuster
<wolfgang.schuster.lists@gmail.com> wrote:
>
>
>
> Aditya Mahajan schrieb am 07.10.18 um 15:26:
> > Hi,
> >
> > There is a FontAwesome.otf file that is distributed with ConTeXt
> > minimals. Does anyone know what version (4 or 5) of the font it is? I
> > am asking because the names of the symbols used in the font do not
> > match those on the font-awesome website. For example, using
> >
> > \showsymbolset[fontawesome]
>
> The distribution includes version 4.7.
>
> > I get that the symbol for "utensils"
> > (https://fontawesome.com/icons/utensils?style=solid) is actually
> > mapped to "food" in ConTeXt. Since the names of the symbols are now
> > taken from the font, my guess is that the distribution has an old
> > version of the font (also because it is a single font rather than three).
> >
> > Would it make sense to update the fonts in the distribution? If not,
> > then simply remove the old version of the fonts?
> >
> > Also, don't we need to update the symb-imp-fontawesome.mkiv file to
> > work with the new symbols. Font awesome has split the fonts into three
> > (https://fontawesome.com/how-to-use/on-the-desktop/setup/getting-started):
> >
> > Solid, Regular, and Brands. (There are also pro version of the fonts).
> > The simplest way to use them will be to have three symbolsets
> > (fontawesome, fontawesome-solid, and fontawesome-brands), where the
> > names are taken from the fonts.
> >
> > In the meanwhile, Hraban has painstakenly written out the mappings by
> > hand, but the automatic mapping might be simpler (and more future proof).
> > https://github.com/fiee/ConTeXt/blob/master/symbols/symb-awesome5.mkiv
>
> While I have no problem replacing the old symbols you can support both
> when you use new set names for the new version (even for the regular style).
>
>
> \definefontsynonym [FontAwesomeBrands]
> [file:fontawesome5brandsregular400.otf]
> \definefontsynonym [FontAwesomeRegular]
> [file:fontawesome5freeregular400.otf]
> \definefontsynonym [FontAwesomeSolid] [file:fontawesome5freesolid900.otf]
>
> \startsymbolset [fontawesome-brands] [font=FontAwesomeBrands]
>    % Font Awesome Brands
> \stopsymbolset
>
> \startsymbolset [fontawesome-regular] [font=FontAwesomeRegular]
>    % Font Awesome Regular
> \stopsymbolset
>
> \startsymbolset [fontawesome-solid] [font=FontAwesomeSolid]
>    % Font Awesome Solid
> \stopsymbolset
>
> \starttext
>
> \startnamedsection [title] [title={Font Awesome Brands}]
>    \showsymbolset [fontawesome-brands]
> \stopnamedsection
>
> \startnamedsection [title] [title={Font Awesome Regular}]
>    \showsymbolset [fontawesome-regular]
> \stopnamedsection
>
> \startnamedsection [title] [title={Font Awesome Solid}]
>    \showsymbolset [fontawesome-solid]
> \stopnamedsection
>
> \stoptext
>
>
> Wolfgang
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

[-- Attachment #2: font_awesome_wolfgang.tex --]
[-- Type: application/octet-stream, Size: 996 bytes --]


\definefontsynonym [FontAwesomeBrands]
[file:fontawesome5brandsregular400.otf]
\definefontsynonym [FontAwesomeRegular]
[file:fontawesome5freeregular400.otf]
\definefontsynonym [FontAwesomeSolid] [file:fontawesome5freesolid900.otf]

\startsymbolset [fontawesome-brands] [font=FontAwesomeBrands]
   % Font Awesome Brands
\stopsymbolset

\startsymbolset [fontawesome-regular] [font=FontAwesomeRegular]
   % Font Awesome Regular
\stopsymbolset

\startsymbolset [fontawesome-solid] [font=FontAwesomeSolid]
   % Font Awesome Solid
\stopsymbolset

\starttext

\startnamedsection [title] [title={Font Awesome Brands}]
   \showsymbolset [fontawesome-brands]
\stopnamedsection

\startnamedsection [title] [title={Font Awesome Regular}]
   \showsymbolset [fontawesome-regular]
\stopnamedsection

\startnamedsection [title] [title={Font Awesome Solid}]
   \showsymbolset [fontawesome-solid]
\stopnamedsection



\symbol[fontawesome-regular][credit-card]


\stoptext


[-- Attachment #3: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Font Awesome (again)
  2018-11-01 11:04   ` Mari Voipio
@ 2018-11-01 11:45     ` Wolfgang Schuster
       [not found]       ` <CAGbDsP0RRaF06=cxQ5rnkWK9vwABdcbfmTOVUHLGhD3DBHDhTg@mail.gmail.com>
  0 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Schuster @ 2018-11-01 11:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Mari Voipio

Mari Voipio schrieb am 01.11.18 um 12:04:
> Hi,
>
> I'm trying to get Font Awesome 5 to work for me, but it only almost does.
>
> Wolfgang's code works and I get a nice list of symbols for all three
> variations, so ConTeXt obviously finds the font. But when I try to use
> a single symbol, ConTeXt prints the symbol name instead of the symbol.
> There must be something I'm overlooking, but I don't know what. Wiki
> wasn't very helpful, although we do have an entry on symbols (Font
> Awesome, on the other hand, isn't mentioned anywhere on the wiki).
>
> I tried with \symbol[fontawesome-regular][credit-card] (at the end of
> my file) and a few variants thereof, but couldn't get the symbol. What
> am I doing wrong? What have I missed?

Since you didn’t provide a example it’s difficult to tell what’s wrong 
for you
but the following example works for me.

Don’t forget to put the files for fontawesome 5 in a folder where 
ConTeXt can find them.


\usesymbols[fontawesome]

\starttext

\symbol[fontawesome-regular][credit-card]

\symbol[fontawesome-solid][credit-card]

\stoptext


Wolfgang
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Font Awesome (again)
       [not found]       ` <CAGbDsP0RRaF06=cxQ5rnkWK9vwABdcbfmTOVUHLGhD3DBHDhTg@mail.gmail.com>
@ 2018-11-01 12:58         ` Wolfgang Schuster
  2018-11-05  7:29           ` Mari Voipio
  0 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Schuster @ 2018-11-01 12:58 UTC (permalink / raw)
  To: mailing users, Mari Voipio

Hi Mari,

you have to update your installation because fontawesome 5 uses a new 
machanism
to load the symbols from the font files. The first version of the 
mechanism from August
did only work when you enabled the symbol set for the whole document and 
extended
support was added in September.

Wolfgang


Mari Voipio schrieb am 01.11.18 um 13:51:
> Hi Wolfgang et al,
>
> I did some more research into this.
>
> If I put \symbol after \showsymbolset, the font gets loaded and the
> symbols show up as expected. If I put \symbol before \showsymbolset,
> the font seems to get loaded, but instead of the symbol I get its name
> printed. If I remove the \showsymbolset commands altogether, the
> correct font doesn't get loaded at all (as far as I understand from
> the log) and understandably I get no symbols then. I didn't touch the
> stuff above \starttext, just moved the \symbol commands around.
> As far as I can tell, the font is properly installed and ConTeXt finds
> it (otherwise \showsymbolset wouldn't work, I think). But I've got a
> nagging feeling I'm missing something somewhere else. Unfortunately
> I'm on thin ice here, fonts really aren't my forte.
>
> Mari
> On Thu, Nov 1, 2018 at 1:45 PM Wolfgang Schuster
> <wolfgang.schuster.lists@gmail.com> wrote:
>> Mari Voipio schrieb am 01.11.18 um 12:04:
>>> Hi,
>>>
>>> I'm trying to get Font Awesome 5 to work for me, but it only almost does.
>>>
>>> Wolfgang's code works and I get a nice list of symbols for all three
>>> variations, so ConTeXt obviously finds the font. But when I try to use
>>> a single symbol, ConTeXt prints the symbol name instead of the symbol.
>>> There must be something I'm overlooking, but I don't know what. Wiki
>>> wasn't very helpful, although we do have an entry on symbols (Font
>>> Awesome, on the other hand, isn't mentioned anywhere on the wiki).
>>>
>>> I tried with \symbol[fontawesome-regular][credit-card] (at the end of
>>> my file) and a few variants thereof, but couldn't get the symbol. What
>>> am I doing wrong? What have I missed?
>> Since you didn’t provide a example it’s difficult to tell what’s wrong
>> for you
>> but the following example works for me.
>>
>> Don’t forget to put the files for fontawesome 5 in a folder where
>> ConTeXt can find them.
>>
>>
>> \usesymbols[fontawesome]
>>
>> \starttext
>>
>> \symbol[fontawesome-regular][credit-card]
>>
>> \symbol[fontawesome-solid][credit-card]
>>
>> \stoptext
>>
>>
>> Wolfgang

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Font Awesome (again)
  2018-11-01 12:58         ` Wolfgang Schuster
@ 2018-11-05  7:29           ` Mari Voipio
  0 siblings, 0 replies; 13+ messages in thread
From: Mari Voipio @ 2018-11-05  7:29 UTC (permalink / raw)
  To: wolfgang.schuster.lists; +Cc: mailing list for ConTeXt users

Hello!

That was it, I forgot rule one: update your ConTeXt before asking
questions. I updated to newest current and everything started working.

Thank you,
Mari
On Thu, Nov 1, 2018 at 2:59 PM Wolfgang Schuster
<wolfgang.schuster.lists@gmail.com> wrote:
>
> Hi Mari,
>
> you have to update your installation because fontawesome 5 uses a new
> machanism
> to load the symbols from the font files. The first version of the
> mechanism from August
> did only work when you enabled the symbol set for the whole document and
> extended
> support was added in September.
>
> Wolfgang
>
>
> Mari Voipio schrieb am 01.11.18 um 13:51:
> > Hi Wolfgang et al,
> >
> > I did some more research into this.
> >
> > If I put \symbol after \showsymbolset, the font gets loaded and the
> > symbols show up as expected. If I put \symbol before \showsymbolset,
> > the font seems to get loaded, but instead of the symbol I get its name
> > printed. If I remove the \showsymbolset commands altogether, the
> > correct font doesn't get loaded at all (as far as I understand from
> > the log) and understandably I get no symbols then. I didn't touch the
> > stuff above \starttext, just moved the \symbol commands around.
> > As far as I can tell, the font is properly installed and ConTeXt finds
> > it (otherwise \showsymbolset wouldn't work, I think). But I've got a
> > nagging feeling I'm missing something somewhere else. Unfortunately
> > I'm on thin ice here, fonts really aren't my forte.
> >
> > Mari
> > On Thu, Nov 1, 2018 at 1:45 PM Wolfgang Schuster
> > <wolfgang.schuster.lists@gmail.com> wrote:
> >> Mari Voipio schrieb am 01.11.18 um 12:04:
> >>> Hi,
> >>>
> >>> I'm trying to get Font Awesome 5 to work for me, but it only almost does.
> >>>
> >>> Wolfgang's code works and I get a nice list of symbols for all three
> >>> variations, so ConTeXt obviously finds the font. But when I try to use
> >>> a single symbol, ConTeXt prints the symbol name instead of the symbol.
> >>> There must be something I'm overlooking, but I don't know what. Wiki
> >>> wasn't very helpful, although we do have an entry on symbols (Font
> >>> Awesome, on the other hand, isn't mentioned anywhere on the wiki).
> >>>
> >>> I tried with \symbol[fontawesome-regular][credit-card] (at the end of
> >>> my file) and a few variants thereof, but couldn't get the symbol. What
> >>> am I doing wrong? What have I missed?
> >> Since you didn’t provide a example it’s difficult to tell what’s wrong
> >> for you
> >> but the following example works for me.
> >>
> >> Don’t forget to put the files for fontawesome 5 in a folder where
> >> ConTeXt can find them.
> >>
> >>
> >> \usesymbols[fontawesome]
> >>
> >> \starttext
> >>
> >> \symbol[fontawesome-regular][credit-card]
> >>
> >> \symbol[fontawesome-solid][credit-card]
> >>
> >> \stoptext
> >>
> >>
> >> Wolfgang
>
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-11-05  7:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-07 13:26 Font Awesome (again) Aditya Mahajan
2018-10-07 13:43 ` Wolfgang Schuster
2018-10-07 14:19   ` Hans Hagen
2018-10-07 15:25     ` Alan Braslau
2018-10-07 15:58       ` Hans Hagen
2018-10-07 15:39   ` Aditya Mahajan
2018-10-07 15:56     ` Hans Hagen
2018-11-01 11:04   ` Mari Voipio
2018-11-01 11:45     ` Wolfgang Schuster
     [not found]       ` <CAGbDsP0RRaF06=cxQ5rnkWK9vwABdcbfmTOVUHLGhD3DBHDhTg@mail.gmail.com>
2018-11-01 12:58         ` Wolfgang Schuster
2018-11-05  7:29           ` Mari Voipio
2018-10-07 16:29 ` Ulrike Fischer
2018-10-07 19:39   ` Aditya Mahajan

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).