Can I upload font in media libraries?

Nitin Patil asked on April 13, 2016 08:25

Can I upload font in media libraries? and call in css?

Correct Answer

Chetan Sharma answered on April 13, 2016 09:59

Yes it's possible. In fact this is how we do it at our company.

A CSS just needs a valid path. it doesn't matter from where it is hosted as long as path is accessible.

Just make sure you have valid settings under Settings -> Content -> Media -> Security

You need to make sure that your font extension is listed here. Otherwsie you won't be be upload your file under Media Libraries.

After this see it's relative path from the media library after uploading your files and use them in your css and you are all set.

I hope this helps.

Thanks Chetan

1 votesVote for this answer Unmark Correct answer

Recent Answers


David te Kloese answered on April 13, 2016 13:51

Hi,

do keep in mind though that it's now accessible by normal website editors. They are able to delete or update the files.

1 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on April 13, 2016 14:31 (last edited on April 13, 2016 14:32)

Yes, I can't stress enough what David has suggested. Use the standard/recommended place for it /App_Themes/<SiteCodeName>/fonts. Editing the security to the media library could make your font not available to the public viewer so be careful there as well.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.