My custom fonts won't show in Ankidroid. I did everything as in the manual & rebooted my phone (SGS i9000).
So here is what I did:
Method 1:
- named file HDZB_75.TTF to _hdzb.ttf
- placed it to ../Anki/<username>/collection.media
- changed style in template
- applied <span>-style to my template
Method 2:
- hdzB_75.TTF installed on computer
- got name of font via field-menu in Anki-Desktop (汉鼎繁中楷) renamed file to 汉鼎繁中楷.tts
- moved file to my phone ../sdcard/AnkiDriod/fonts/
- did same as above with templates
That's my custom Stylsheet:
@font-face { font-family: cn_vereinfacht; src: url('hdzb.ttf'); }
.card {
font-size: 5rem;
text-align: center;
color: black;
background-color: white;
}
.schriftzeichen {
font-family: cn_vereinfacht;
}
.schriftzeichen2 {
font-family: 汉鼎繁中楷;
}
Frontside:
{{Deutsch}}
<span class="schriftzeichen">我</span>
<span class="schriftzeichen2">我</span>
Backside:
{{Schriftzeichen}}
<span class="schriftzeichen">我</span>
<span class="schriftzeichen2">我</span>
In Ankidroid it just shows all in default font, while in Anki-Desktop only method 2 worked.
Did I do something wrong or are custom fonts not fully implemented yet?
--
You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/anki-android/-/k6KtZKERVSQJ.
To post to this group, send an email to anki-a...@googlegroups.com.
To unsubscribe from this group, send email to anki-android...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/anki-android?hl=en-GB.
--
You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anki-android...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
.card {
font-family: sblgrk;
font-size: 20px;
text-align: center;
color: black;
background-color: white;
}
@font-face { font-family: "sblgrk"; src: url("_SBL_grk.ttf"); }
I've copied the _SBL_grk.ttf to the proper folder, and it downloaded to AD, but for whatever reason it will not display the proper font.
Thanks for any help!
--
You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anki-android...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/anki-android/58c43e5c-5eef-467f-99aa-2a3d8e6ad2c7%40googlegroups.com.To post to this group, send email to anki-a...@googlegroups.com.