Google fonts

Comments

7 comments

  • Avatar
    Nils Bier

    Hi Seona,

    I've just added some CSS to the Stylesheet of a space managed with Scroll Versions (as described here).
    Everything worked as expected and the font was successfully changed.

    Best,Nils

    0
    Comment actions Permalink
  • Avatar
    Seona Bellamy

    Hi Nils,

    Thanks for your response, but is there a link missing?

    0
    Comment actions Permalink
  • Avatar
    Nils Bier

    Hi Seona,

    sorry :-)

    Here you go: https://confluence.atlassian.com/display/DOC/Styling+Fonts+in+Confluence

    Best,Nils

    0
    Comment actions Permalink
  • Avatar
    Seona Bellamy

    Hi Nils,

    Thanks. I've tried the code from that page, and it allows me to change to another standard font - such as the Times (and fallbacks) of the example.

    However we're wanting to use the font Roboto from Google Fonts (https://www.google.com/fonts/specimen/Roboto). I've tried adding just the name to the CSS, since you original response suggested that this should work. I used the Times example from the page you quoted as a base, since Roboto is a sans-serif font so I figured it would be fairly easy to spot if it worked. Sadly, the page is displaying with serifs.

    body {  
    font-family: Roboto, Times, "Times New Roman", serif;  

    Any suggestions as to what I'm dong wrong?

    Cheers,
    Seona.

    0
    Comment actions Permalink
  • Avatar
    Nils Bier

    Hi Seona,

    have you already tried to upload it to your system and then refer to the font (as described here: https://answers.atlassian.com/questions/9386799/confluence-add-custom-font-file-to-use-in-space-stylesheet-)?

    Best,
    Nils

    0
    Comment actions Permalink
  • Avatar
    Seona Bellamy

    Hi Nils,

    Aha! I hadn't realised I needed to host the fonts locally for it to work. Now I've done that it's working beautifully.

    Thanks for your help.

    0
    Comment actions Permalink
  • Avatar
    Nils Bier

    Hi Seona,

    great to hear that everything works as expected.

    Cheers,
    Nils

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk