# What Android system fonts do you use for code

**URL:** <https://forums.ankiweb.net/t/what-android-system-fonts-do-you-use-for-code/9919>\
**Category:** Help\
**Created:** [May 10, 2021, 5:25pm UTC](https://forums.ankiweb.net/t/what-android-system-fonts-do-you-use-for-code/9919 "2021-05-10T17:25:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![3ter](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/3ter/32/2379_2.png) [@3ter](https://forums.ankiweb.net/u/3ter)\
**Post date:** [May 10, 2021, 5:25pm UTC](https://forums.ankiweb.net/t/what-android-system-fonts-do-you-use-for-code/9919/1 "2021-05-10T17:25:22Z")

</div>

What’s needed to make fonts used e.g. for the following classes also show on Ankidroid?

```auto
pre, code {
  font-family: "consolas", "Lucida Console", "Droid Sans Mono"
}

```

I thought at least `Droid Sans Mono` should be installed on Android. If not, is there another font you’ve been using successfully?

EDIT: Of course I found a [fonts section](https://docs.ankidroid.org/manual.html#customFonts) in the official ankidroid manual and the [install fonts section](https://docs.ankiweb.net/templates/styling.html?highlight=fonts#installing-fonts) for the desktop app.

So this question boils done to the latter part. Are there fitting system fonts you’re using?

---

<div class="post-metadata">

**Author:** ![Rumo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/rumo/32/1505_2.png) [@Rumo](https://forums.ankiweb.net/u/Rumo)\
**Post date:** [May 10, 2021, 5:56pm UTC](https://forums.ankiweb.net/t/what-android-system-fonts-do-you-use-for-code/9919/2 "2021-05-10T17:56:42Z")

</div>

My phone won’t even let me install custom fonts… I tend to use generic names, `monospace` in this case, to save time and trouble.

---

<div class="post-metadata">

**Author:** ![3ter](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/3ter/32/2379_2.png) [@3ter](https://forums.ankiweb.net/u/3ter)\
**Post date:** [May 10, 2021, 7:31pm UTC](https://forums.ankiweb.net/t/what-android-system-fonts-do-you-use-for-code/9919/3 "2021-05-10T19:31:48Z")

</div>

Sometimes it’s the easy the things that do the trick 🙂  
Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 3:10am UTC](https://forums.ankiweb.net/t/what-android-system-fonts-do-you-use-for-code/9919/4 "2023-05-01T03:10:41Z")

</div>

Closed on May 1, 2023, 3:10am UTC


