This thread is pretty old, but in case someone else is looking for an answer to this question ... code39 is a font, like most types of barcode. You can simply use Google fonts: https://fonts.google.com/specimen/Libre+Barcode+39+Extended+Text?selection.family=Libre+Barcode+39+Extended+Text
In addition to this option, you can host static files, one of the solutions could be this project on github:
https://github.com/Holger-Will/code-39-font
In this project, you only need the files associated with the size you need, and the code39_all.css file. You can delete the rest if you want.
For reference, I use both here:
{% load staticfiles %} {% load static %} <html> <head> <link href="https://fonts.googleapis.com/css?family=Libre+Barcode+39+Extended+Text" rel="stylesheet"> <link rel="stylesheet" href="{% static 'code-39-font-master/code39_all.css' %}"/> </head> <body> <style> body { font-family: 'Libre Barcode 39 Extended Text', cursive; font-size: 48px; } </style> <div>I'm just a code39 google font</div> <div><class="code_39_S">I'm generated with static files!</div> </body> </html>
source share