Developer forum

Forum » Rapido » Custom font list

Custom font list

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

Is it possible to use a custom font list in Rapido instead of the Google Fonts one? Or extend the Google font list to include my cyustom fonts?

The font might be stored on the file system or loaded from the cloud.

I am also interested in keeping upgradability as much a possible.

Thank you,
Adrian


Replies

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

Hi Adrian

Currently, we only support google fonts. If you are using Rapido 3.0 you may be able to extend the template using Blocks, and add a new font reference to "TopSippets". But I am not fully sure if this will work, as we are not adding it to <head> Then just create the needed new css in "Ignite".

It may be worth a try. 

 

Best regards
Karsten Thuen

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Karsten,

Thank you for confirming.

That was our conclusion as well. We need to go with eIgnite approach.,

Maybe you can add this as a feature request for future versions. A way to extend the Json that you receive from Google.

Some enterprise customers might have Typekit fonts purchased. The bigger the client, the less flexible branding rules are :)

Thank you,

Adrian

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

Hi Adrian

You are right. I know this is a common case on large customers that has invested in a very custom brand identity. I am not sure extending the Google font selector item type field, will be the best fit for the case. The reason is that the case we are trying to solve is like this "Use custom font, then leave as it is" The Google font selector is "Select best fit for current design"

On Rapido we have a whole ItemType for fonts. Here is my suggestion: 

  • We add a new checkbox field "Use custom font"
  • When clicking it, two new fields become visible: "Font reference (Link field)" and "Font name (Text field)"
  • "Font reference" is for linking to the custom font
  • "Font name" is the one that the CSS needs

Of course I will have to discuss it further with the Rapido team. But I would like to hear if you think that would fit the need? Maybe you have some other ideas regarding the requirements for this?


Best regards
Karsten Thuen

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Karsten,

We need a solution that would not affect the upgradability of Rapido.

As long as this solution can live alongside the current Google Font option, I am fine with it.

I would also be fine if we have a way to extend the font feed (I would avoid calling it google Font feed) programatically with a "Font provider". Since this is a global setting and can be part of the initial configuration, it does not need to be a back-end available option. A provider can allow you to specify whatever you want in that list as long as you respect the parameters of the JSON. I have noticed there are a lot of options in that, like the font version, weight etc and they are useful.

There might be also situations where a font would not have necessary variation/sets for languages. Like special characters. If we want to avoid users making unappropriate choices, we might need to filter out the fonts not available for a specific language set. I am not sure if you are already doing it but it is something to be kept in mind.  An admin would not know to make an educated decision about a font family and also take into consideration the language sets.

I am sure it is not an easy task, that's why I think it needs some thought in it before making a change. It can be a change that can ensure a long life of this functionality or just a patch. I would prefer the first option.

If you need any other opinion on this, please let me know. i would be happy to help.

I am also on the slack channel if it's easier for you or want to have a larger group on the thread.

Thank you,
Adrian

 
Conor McKeown
Conor McKeown
Reply

Hi Karsten and Adrian,

We have some clients with strict brand guidelines that use non Google fonts.

Any update on a solution for this?

Conor

 
Nicolai Pedersen
Reply

Nope, but you can simply overwrite the fontface in Ignite.css for now.

 
Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

Hi All

Any update for this after 1 year?

 
Nicolai Pedersen
Reply

Nope. We are soon to release 3.4 and will start 4.0 development soon. 4.0 will have a different approach to layout, including fonts, and we might consider something in this regard.

BR Nicolai

 

You must be logged in to post in the forum