kobby_adu-nti
ServiceNow Employee
ServiceNow Employee

As best practice, we advise our customers to use the system fonts provided with an instance. However, for those who do not wish to be limited with the out-of-the-box offerings there is a workaround. The Upload File module is obsolete in Fuji denying you the rights to upload to the /scs directory. This catches many people offguard especially those following the instructions from ServiceNow CMS fonts by ServiceNow Elite by Mike Kaufman.

You can utilize the [sys_attachment] table to put font files into CMS. See Uploading Attachments - ServiceNow Wiki to understand how attachments work.


In the following example I have attached the font Lato-Regular to an incident record


image 1 PM.JPG


Once the file has been uploaded you should be able to access it by navigating to <your_instance_name>.service-now.com/sys_attachment_list.do, or typing sys_attachment.list in the navigator. Sort the records by date or locate the file name


image 2 PM.JPG

  1. Double click on the Table sys ID column on the record and copy the value. You will need this to reference the font file
  2. Use the Navigator to traverse to Content Management > Default CSS - Base Styles.
  3. Add a @font-face rule to the style sheet you are using for your CMS portal. Ensure you reference the URI location of the font in the attachment table

     

image 2015-10-18 at 12.56.26 AM.JPG


  4.   Do not forget to set the font-family key value pair where you require in your style sheet


Screen Shot 2015-10-18 at 1.05.07 AM.JPG

Finally load up your portal and admire your new style.

Some related helpful information can be found in:

Font Size in Fuji?

How do I get my own font on ServiceNow Portal?

Fonts on mobile UI

System Setting for Default Font

2 Comments