I’m trying to give a custom callout i’m creating in css a custom fontface i have in the same directory. I have the .ttf file for it and have the fontface definition for it in the snippet, but the font does not render at all, it gets replaced by some default simple font. I’ve checked if any other font works and the already integrated fonts do work, but mine doesn’t. Here’s how my snippet looks like:
@font-face {
font-family: 'Fleaur De Leah';
src: url('fonts/FleurDeLeah-Regular.ttf');
}
@font-face {
font-family: 'Luxurious Script';
src: url('fonts/LuxuriousScript-Regular.ttf');
}
.callout[data-callout="title"] .callout-icon {
display: none;
}
.callout[data-callout="title"] {
--callout-icon: lucide-activity;
}
.callout[data-callout="title"]{
--callout-color: 255, 255, 255, 0;
--callout-title-color: var(--accent-color);
font-family: "Fleaur De Leah", "Luxurious Script";
--callout-title-size: 2.8em;
}
.callout[data-callout="title"] .callout-title {
font-family: "Fleaur De Leah", "Luxurious Script";
}
And what I have in my note:
>[!title] The Journal
It sould look like either of these two:
but instead it looks like this :

What could be the problem with displaying these fonts? I’ve tried in the past to give custom downloaded fonts to specific elements unsuccessfully. I do not have these fonts installed into my computer’s system and I don’t know if that could be the issue here.
And, to clarify, the snippet is active. It is the one that is making the note purple.
PLease helppp

