Using Custom Fonts In Service Portal - PUBLIC Pages

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2017 09:18 AM
I'm trying to use custom fonts (font icons) in Service Portal on a public page, but with no success. There is a great post with multiple options on how to add custom fonts (Using Custom Fonts In Service Portal) and Options #3 works perfect for logged in users. However, it doesn't work for a public role.
I tried read ACLs for sys_attachment and sp_css tables with public role, but with no success.
Any ideas on how to make custom fonts available for a public page?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2017 11:04 AM
Base64 encoding the font files and putting them in the css include should work (option 2).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2017 10:20 AM
If base64 encoding doesn't work (doesn't always work with all fonts), I would recommend hosting the font files on a CDN or Amazon S3.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2017 10:32 AM
I feel your pain Andrew.
This is especially crucial for B2C interactions. Where many customers (using that word here to mean external to the business) are accessing all kinds of "attachments". At some point (now) the Attachment APIs will need to accomodate "unauthenticated access". And yes I fully acknowledge how non-trivial an effort this iwill be and bravo to those that may be working on it right now!
For Fonts and other "certified" web assets it would be sweet to have a ServiceNow CDN, for ServiceNow customers only.
I know that some ServiceNow clients shy away from dependance upon yet another cloud resource.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2017 05:20 PM
In fact, Option #2 works absolutely fine for me.. with one exception - free tool by Font Squirrel doesn't work with all font types, so I just used base64 macOS/linux command to encode the icon font.