I have some characters defined in U+F3. I’ve installed the required font, and the characters display correctly in Word.
However, I couldn’t make it work in Anki.
I’ve tried to 1) use the system font-family name and 2) put the font file in the user directory with a leading _ and quote it locally. Neither of them work.
Does anki support unicode private use areas? If so, what should I do to make it work?
Thanks.
UPDATE:
It seems to be a problem generally existed in webkit browsers.
To do so, you have to manually instruct each character to use that font, doing so as explained here.
Thanks.
I tried both methods provided in the answer but still couldn’t make it work.
The character I tested is U+F2AAF utf-8 character icon | UTF8-Icons.com, with html and CSS \F2AAF.
Following the instruction, I did:
1)put
<span aria-hidden="true" data-icon="󲪯"></span>
at the template page
and
[data-icon]:before {
font-family: 'WenQuanYi Zen Hei';
content: attr(data-icon);
speak: none;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
}
on the style page.
-
<span aria-hidden="true" class="icon-pencil">󲪯</span>
on the template page and
.icon-pencil, .icon-folder {
font-family: 'WenQuanYi Zen Hei';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
}
.icon-pencil:before {
content: "\F2AAF";
}
.icon-folder:before {
content: "\F2AAF";
}
on the style page.
Neither works. A square box is shown instead.