I'm going insane trying to get this to work so I'm wondering if anyone has an idea how to accomplish this.
My current little project is a reskin of Joplin to have a go at some Joplin related CSS and getting it published as a plugin theme.
So far it has all gone pretty well, things are looking good (even if the process has been somewhat complicated in many places) however I've got to a point where I'm totally stuck.
The plan is to replace the current fontawesome icons with a new set and no matter what I've tried I just can't get them to display. The dev tools show that it sees my CSS changes to include the font family and the content but it always just comes up blank.
So as an example this is what I have in my chrome.css
file taken from the CSS of a webfont I've downloaded (yes I know I don't need the fix for ie but I've just copied verbatim, trimming it down doesn't help either):
@font-face {
font-family: 'replacement-font';
src: url('./webfont/replacement-font.eot?16747377');
src: url('./webfont/replacement-font.eot?16747377#iefix') format('embedded-opentype'),
url('./webfont/replacement-font.woff2?16747377') format('woff2'),
url('./webfont/replacement-font.woff?16747377') format('woff'),
url('./webfont/replacement-font.ttf?16747377') format('truetype'),
url('./webfont/replacement-font.svg?16747377#replacement-font') format('svg');
font-weight: normal;
font-style: normal;
}
My plugin src structure looks like the following:
├── src
│ ├── chrome.css
│ ├── chrome.css.map
│ ├── index.ts
│ ├── manifest.json
│ ├── note.css
│ └── webfont
│ ├── replacement-font.eot
│ ├── replacement-font.svg
│ ├── replacement-font.ttf
│ ├── replacement-font.woff
│ └── replacement-font.woff2
And I'm trying to invoke it using the following CSS:
.fa-plus:before {
font-family: "replacement-font" !important;
content: "\e833" !important;
}
The dev tools imply that it might have worked when inspecting that element:
but alas nothing shows up.
I've tested the font on a plain html file using exactly the same CSS and it works fine. I'm clearly missing something important here...