Include ttf files in contents of chrome script extension

I am using a content script to embed some HTML in a web page. I am trying to use google font, CabinCondensed-Regular and a number of icon fonts derived from IcoMoon. I downloaded the files and included them in CSS using @font-face, because from what I can say faster, but I don’t know how to include them in manifest.json. You can usually specify the file "content_scripts": [

{
    "matches": [ "<all_urls>"],
    "css":["style.css", "jquery-ui.css"],
    "js":["jquery-2.1.0.min.js", "index.js", "jquery-ui.min.js"],
}

but as far as I can tell, there is no specific tag for fonts, so how can I include ttf files?

+4
source share
1 answer

, "web_accessible_resources" ( "content_scripts"). , @font-face . . https://developer.chrome.com/extensions/manifest/web_accessible_resources

+5

Source: https://habr.com/ru/post/1535287/


All Articles