How many stock Android fonts are available to code in the Styling section of the Note Type?

163 views
Skip to first unread message

Stu Guerin

unread,
Nov 5, 2013, 7:06:37 PM11/5/13
to anki-a...@googlegroups.com
Hi everyone,

I have been using Ankidroid for over 2 years, and I've been getting bored of the default font. I don't want to bother with installing custom fonts, so does anyone know if there are more fonts (I'm using Android 4.1.2) than the ones I've listed below?

font-family: serif;
font-family: sans-serif-light;
font-family: sans-serif-condensed;


Thanks,
Stu40

Flavio Lerda

unread,
Nov 7, 2013, 3:44:54 AM11/7/13
to anki-a...@googlegroups.com
Hello Stu,

There are two types of font families that you can use in HTML.

The first one is a generic family, like "serif", "sans-serif", "cursive", "fantasy", "monospace" [1]. Every (modern) browser should support these five, but the exact result might differ from browser to browser.

​The second one is ​a font family as defined by one of the fonts installed on a particular device. Some fonts, like Roboto and its variants, are part of Android 4.0 and above [2], but different manufactures can offer additional sets of fonts on a device.

If you need anything more sophisticated than the generic families, you might want to consider including an open-source font in your deck, especially if you want to share it.

Flavio



--
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.

Stuart Guerin

unread,
Nov 9, 2013, 10:49:56 PM11/9/13
to anki-a...@googlegroups.com
Hi Flavio,

Thanks for your detailed reply. With my limited understanding of CSS, I tested all the fonts listed, and I found only these ones worked on my Samsung Galaxy S2 running Android 4.1.2;

font-family: serif;

font-family: sans-serif;

font-family: sans-serif-light;

font-family: sans-serif-condensed;

font-family: monospace;


My original Basic Note Type had font-family: Arial, but I worked out that since my phone doesn't have that font, it was showing sans-serif instead. My favourite is now sans-serif-light, so I've changed all my cards to that font now.


Thanks again for your assistance,

Stu40



--
You received this message because you are subscribed to a topic in the Google Groups "AnkiDroid" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/anki-android/FqNtYgfLejQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to anki-android...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages