Can't load font on droplet

Hello guys,

I’m trying to install SF font from Apple on my Droplet.

I’ve placed the font in 3 places, just in case:


Then in my .css I have:

font-family: 'SF UI Display Regular';

Which works fine in my Mac.

Any suggestions please?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


Unless you’re referencing the location of the font in your CSS file, font-family isn’t going to work as it normally would in a local environment (i.e on a Mac or Windows machine).

In your CSS file, you’ll need to define @font-face and provide a direct or relative path to the font file before it can be used.

This should be placed above any references to the font in question (i.e. at the top of the CSS file).


@font-face {
    font-family: 'SF UI Display Regular';
    font-style: normal;
    font-weight: 400;
    src: local('/path/to/font.ext');

You would need to change /path/to/font.ext to the direct or relative path to the associated file.

Have you installed a desktop environment on your droplet? Which .css file are you referring to?