# How can AnkiWeb display a TTF file font?

**URL:** <https://forums.ankiweb.net/t/how-can-ankiweb-display-a-ttf-file-font/69532>\
**Category:** Card Design\
**Created:** [April 25, 2026, 1:32am UTC](https://forums.ankiweb.net/t/how-can-ankiweb-display-a-ttf-file-font/69532 "2026-04-25T01:32:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eli\_C](https://avatars.discourse-cdn.com/v4/letter/e/34f0e0/32.png) [@Eli\_C](https://forums.ankiweb.net/u/Eli_C)\
**Post date:** [April 25, 2026, 1:32am UTC](https://forums.ankiweb.net/t/how-can-ankiweb-display-a-ttf-file-font/69532/1 "2026-04-25T01:32:48Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/0/1/0113c0a10907e69f301be873a9a28d9eb4809fbc.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/0/b/0b734a668b14208ebb8c6767108f55999c09a0dd.png)

Hello all,

I’ve managed to get my custom font Zeresoa into Anki and am very pleased with it. I would love to study cards in the custom script on AnkiWeb, but have no idea how to give AnkiWeb a TTF file.  
How to view custom fonts in AnkiWeb?

Images attached to show the difference.

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [April 25, 2026, 3:23am UTC](https://forums.ankiweb.net/t/how-can-ankiweb-display-a-ttf-file-font/69532/2 "2026-04-25T03:23:18Z")

</div>

> **[Installing Fonts - Styling & HTML - Anki Manual](https://docs.ankiweb.net/templates/styling.html#installing-fonts)**
>
> You can watch a video about styling cards on YouTube. The video shows Anki 2.0’s interface, but the concepts are largely the same. | Anki's user manual. Anki is a flashcard program that makes learning easier.

---

<div class="post-metadata">

**Author:** ![Eli\_C](https://avatars.discourse-cdn.com/v4/letter/e/34f0e0/32.png) [@Eli\_C](https://forums.ankiweb.net/u/Eli_C)\
**Post date:** [April 25, 2026, 3:47am UTC](https://forums.ankiweb.net/t/how-can-ankiweb-display-a-ttf-file-font/69532/3 "2026-04-25T03:47:08Z")

</div>

I don’t see any mention in the manual or the linked video where one can update HTML for the web version? Unsure how I can get a TTF file into the browser version, which is why I specifically mentioned AnkiWeb. Maybe I’m missing something, but AnkiWeb doesn’t seem to have any Edit Card features.

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [April 25, 2026, 3:58am UTC](https://forums.ankiweb.net/t/how-can-ankiweb-display-a-ttf-file-font/69532/4 "2026-04-25T03:58:50Z")

</div>

You need to install the font in your collection on _desktop_ Anki – following those instructions. Then, when you sync your collection to AnkiWeb, the font will sync too.

Right now on desktop, you’re probably only seeing the font because it’s installed on your device. But that’s not enough to make it show up on a website.

---

<div class="post-metadata">

**Author:** ![Eli\_C](https://avatars.discourse-cdn.com/v4/letter/e/34f0e0/32.png) [@Eli\_C](https://forums.ankiweb.net/u/Eli_C)\
**Post date:** [April 25, 2026, 4:11am UTC](https://forums.ankiweb.net/t/how-can-ankiweb-display-a-ttf-file-font/69532/5 "2026-04-25T04:11:45Z")

</div>

Yes, in the original post I specified that it was working fine on desktop. I’ve synced after installing successfully on desktop but the web browser continues to be incorrect. I wonder if syncing alone is not enough? Or maybe there is some extra step in syncing that I missed.

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [April 25, 2026, 5:47am UTC](https://forums.ankiweb.net/t/how-can-ankiweb-display-a-ttf-file-font/69532/6 "2026-04-25T05:47:08Z")

</div>

No, those instructions are correct, if you followed them.

> [@Eli\_C](#):
>
> I’ve synced after installing successfully on desktop

Installed the font to your Windows computer? Or installed the font in your Anki collection?

---

<div class="post-metadata">

**Author:** ![Eltaurus](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/eltaurus/32/10287_2.png) [@Eltaurus](https://forums.ankiweb.net/u/Eltaurus)\
**Post date:** [April 25, 2026, 6:00am UTC](https://forums.ankiweb.net/t/how-can-ankiweb-display-a-ttf-file-font/69532/7 "2026-04-25T06:00:31Z")

</div>

It should be enough to place the font file into the `collection.media`, referencing it via `@font-face` at the top of the styling tab of your card template and syncing it to upload everything to the cloud.  
If it’s not displaying correctly you can try doing hard page refresh (`Ctrl+F5` or `Ctrl+Shift+R`) to clear the cache. To check if there is a problem with the browser reading your font file you can check the console (`F12`) for errors like “failed to decode downloaded font”.  
As an independent test you can also make a minimal html file:

```auto
<!DOCTYPE html>
<head>
<style>
@font-face {
  font-family: "MyFont";
  src: url("_MyFont.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
body {
  font-size: 40px;
  font-family: "MyFont";
}
</style>
</head>
<body>
  some text
</body>
</html>

```

and try opening it in your browser. It expects the font file being named “\_MyFont.ttf” (with the underscore; case matters) and placed in the same folder as the html. If the font itself is fine, it should render the text using it.

---

<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 25, 2026, 6:00am UTC](https://forums.ankiweb.net/t/how-can-ankiweb-display-a-ttf-file-font/69532/8 "2026-05-25T06:00:42Z")

</div>

Closed on May 25, 2026, 6:00am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
