Add a custom font for Knowledge Articles

Konstantinos Di
Mega Guru

I'd like all the Knowledge Articles to be shown with a custom font.


I tried to attach a .ttf file and use that as a source with the CSS Include and applying it with a UI Policy but it seems like I did something wrong since it didn't change anything.

Any help for that would be greatly appreciated 🙂 

1 ACCEPTED SOLUTION

Konstantinos Di
Mega Guru

I have found a  fix myself that worked, using stylesheet and CSS Include. Thanks nonetheless 🙂 

View solution in original post

7 REPLIES 7

Rene El Hamzh
Kilo Sage

Hi, 

 

you could add CSS to the article body HTML field using the <style> tag:

 

<style>
  @import url('<link to your font>');
  p {
    font-family: <add your font family here>
  }
</style>

 

 

Best regards,

Rene

 

Please mark as correct/helpful if my answer helped you!

Konstantinos Di
Mega Guru

I have found a  fix myself that worked, using stylesheet and CSS Include. Thanks nonetheless 🙂 

Hi @Konstantinos Di 

 i am trying to do the same, could you tell me how exactly you have done this, it would be helps me lot.

Hi @hreddy 

Please update system property "glide.ui.html.editor.font.collection" to show custom fonts and html tiny editor.

You can access Portal styles using the sysif of the style using sysid of the style
Please refer all your list of style in the table "sp_css.LIST"

Update HTML field default dictionary value

<head>

<link rel="stylesheet" type="text/css" href="sys_id_Of_style.spcssdbx">

</link>

<p><span style="font-family: Custom Font;font-size: 12pt;">&nbsp;</span></p>




You can access Portal styles using the sysif of the style using sysid of the style
Please refer all your list of style in the table "sp_css.LIST"

<head>

<link rel="stylesheet" type="text/css" href="sys_id_Of_style.spcssdbx">

</link>