Since I can't use chrome.extension.getURL()
on a CSS file, how can I use @font-face with a local font file?
Google FontsClick on the download link (top right): Select 'Collection as zip': Then place the fonts you want into a new folder in your extension.
You can use a <basefont> tag to set all of your text to the same size, face, and color. The font tag is having three attributes called size, color, and face to customize your fonts. To change any of the font attributes at any time within your webpage, simply use the <font> tag.
Here is how to get local path in css:
body { background-image:url('chrome-extension://__MSG_@@extension_id__/background.png'); }
More about it here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With