Currently, I am using a content script to inject some HTML into a webpage. My goal is to incorporate the google font named CabinCondensed-Regular, along with several icon fonts that I obtained from IcoMoon. I have already downloaded the necessary font files and have included them in the CSS using @font-face
. However, my dilemma lies in including these fonts in the manifest.json file. Typically, you can specify files like this:
{
"matches": [ "<all_urls>"],
"css":["style.css", "jquery-ui.css"],
"js":["jquery-2.1.0.min.js", "index.js", "jquery-ui.min.js"],
}
Unfortunately, there doesn't seem to be a specific tag for fonts in the manifest.json file. So my question is: how can I include the ttf files?