NG2 Fontawesome

Forum to discuss the new web client version of Servoy.

NG2 Fontawesome

Postby steve1376656734 » Fri Jan 21, 2022 1:28 pm

In the absence of a forum area for Servoy TiClient ( :wink: ) I thought I would post my question here!

We use FontAwesome Pro in our solution and have a custom web service that replaces the standard Servoy supplied one. Having looked at the Servoy repositories I can see that there is nothing in the FontAwesome package that is specific to NG2 so thought I would see if our package would work with the NG2 cient.

I created a new workspace and added a new project with the basic search, utils and navigation modules installed. I thne replaced the Fontawesome service with our own one and everything worked as expected for NG1. However, when I start an NG2 client it seems to have something that automatically uses the FontAwesome free package which you can see when inspecting the sources in the browser developer console:

fontawesome ng2.png


I then removed the FontAwesome package completely from the project and sure enough the NG2 client is still accessing the free package and able to show the basic icons. This shows that there is no dependency on the package installed by the package manager at all for the NG2 client.

Is there going to be a way to override this behaviour in NG2 as our solution depends upon the FontAwesome Pro package?

Thanks
Steve
You do not have the required permissions to view the files attached to this post.
Steve
SAN Developer
There are 10 types of people in the world - those that understand binary and those that don't
steve1376656734
 
Posts: 334
Joined: Fri Aug 16, 2013 2:38 pm
Location: Ashford, UK

Re: NG2 Fontawesome

Postby mw » Wed May 15, 2024 1:56 pm

Hi Steve
We have exactly the same problem with Servoy 2023.3.5 LTS and a new TiNG-Project. Do you have a solution in the meantime?
Monika Waser
om computer support ag, Switzerland
mw
 
Posts: 6
Joined: Wed Sep 16, 2015 1:09 pm
Location: 6330 Cham, Switzerland

Re: NG2 Fontawesome

Postby lvostinar » Wed May 15, 2024 2:05 pm

mw wrote:Hi Steve
We have exactly the same problem with Servoy 2023.3.5 LTS and a new TiNG-Project. Do you have a solution in the meantime?


We added https://github.com/Servoy/fontawesomepro as a wrapper for Font Awesome Pro.
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1064
Joined: Tue Feb 19, 2008 10:53 am

Re: NG2 Fontawesome

Postby mw » Wed May 15, 2024 2:22 pm

We already did the steps according to https://github.com/Servoy/fontawesomepro.
It didn't help. Still the fontawesome from \.metadata\plugins\... is activ. It seems, that this fontawesome lib is consulted first. What can we do, that our fontawesome pro lib is conulted first?
Monika Waser
om computer support ag, Switzerland
mw
 
Posts: 6
Joined: Wed Sep 16, 2015 1:09 pm
Location: 6330 Cham, Switzerland

Re: NG2 Fontawesome

Postby lvostinar » Wed May 15, 2024 2:29 pm

I guess you need the fix from : https://servoy-cloud.atlassian.net/browse/SVY-18856 then
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1064
Joined: Tue Feb 19, 2008 10:53 am

Re: NG2 Fontawesome

Postby mw » Thu May 16, 2024 8:25 am

With the fix it works. Thank you.
Monika Waser
om computer support ag, Switzerland
mw
 
Posts: 6
Joined: Wed Sep 16, 2015 1:09 pm
Location: 6330 Cham, Switzerland


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 4 guests