Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Benjamin G. on October 28, 2022, 06:21:05 pm



Title: FONTAWESOME DUOTONE ...
Post by: Benjamin G. on October 28, 2022, 06:21:05 pm
Hello,

Can we use the duotone fontawesome with Genero ?

Thanks


Title: Re: FONTAWESOME DUOTONE ...
Post by: Leo S. on October 30, 2022, 12:45:22 pm
Hi Benjamin, in principle you could use duotone icons with the GBC: however they are not based on a .ttf font, so its technically different from the last free FontAwesome version we ship.
Duotone icons are simply svg tags , check in this codepen
https://codepen.io/fontawesome/pen/yLPEeyz

the sample includes  some scripts from fontawesome.com, it should IMHO be possible to use this at least in a GBC customization.
Not sure if a singular icon can be exported to singular svg file ..I'm not an SVG expert.

Regards, Leo


Title: Re: FONTAWESOME DUOTONE ...
Post by: Leo S. on October 30, 2022, 12:50:04 pm
On https://fontawesome.com/docs/desktop/add-icons/duotone-desktop it seems they are shipping as separate svgs, so  GDC/GBC support SVG normally.


Title: Re: FONTAWESOME DUOTONE ...
Post by: Benjamin G. on October 30, 2022, 12:58:39 pm
Hi,

Thanks.

Yes we can use duotone using TTF but we can't find a way to define the "colors" of the tones ... using StyleAttribute "defaultTTFColor" we can only play with one of the tone ... and don't want to play with a GBC customization as possible

Regards


Title: Re: FONTAWESOME DUOTONE ...
Post by: Leo S. on October 30, 2022, 01:08:34 pm
Ok, then  I'd suggest looking at the svg files how to modify the colors in there...could be done with a little Genero program...


Title: Re: FONTAWESOME DUOTONE ...
Post by: Benjamin G. on October 30, 2022, 01:10:48 pm
Ok thank you Leo