It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Including font in custom theme

Alex Yasurek Aug 19, 2014


I am trying to include a font in my custom theme but not exactly sure how I am suppose to do this. I have a CSS declaration for font-face and this declaration in my atlassian-plugin file under web-resource:

<resource name="custom-font.ttf" type="download" location="/fonts/custom-font.ttf"></resource>

Does anyone know what else I am suppose to do to be able to use a font in a custom theme?

1 answer

2 votes
Sharon Hinde Dec 22, 2014 • edited Jan 17, 2019


this is an example of how I implemented fonts in a plugin:

1.  Add all font resources, including the CSS file with font-face declaration, to a single font folder

2.  Add the web resource and file locations to atlassian-plugin.xml

<web-resource key="plugin-fonts-css" name="Plugin Fonts CSS">
    <resource name="plugin-fonts.css" type="download" location="/plugin/fonts/plugin-fonts.css"/>
    <resource name="plugin.otf" type="download" location="/plugin/fonts/plugin.otf"></resource>
    <resource name="plugin.eot" type="download" location="/plugin/fonts/plugin.eot"></resource>
    <resource name="plugin.svg" type="download" location="/plugin/fonts/plugin.svg"></resource>
    <resource name="plugin.ttf" type="download" location="/plugin/fonts/plugin.ttf"></resource>
    <resource name="plugin.woff" type="download" location="/plugin/fonts/plugin.woff"></resource>

3.  In your velocity template add:


4.   Add the required classes to the HTML in the velocity

Compared to your example I would say that the CSS file needs to be included with your web-resource for the font.


Hope this helps.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in United States

Topic Tuesday: Agile

Another week, another Topic Tuesday!  Agile has been on my mind a lot lately because I've seen good implementations and bad implementations, but now as a Jira admin it matters more to me whether...

26 views 0 0
View post

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you