Font issues with new update

For some reason, my anki is not using the html code correctly recently. I have tried looking to see if someone else had this issue, to no avail, and can not find anything in the help documents about this.

My problem is this: I have a language deck that I am using and part of my cards design is adding different font sizes and colors depending on the field, which may include non-alphanumeric characters. I have it set to customize each field specifically with coding and it was working fine before.

However, now only some fields are actually giving me the correct colors. The issue isn’t with the characters involved; I have changed fonts a few times, but they all have the same problem. Also, some fields in a card will change and others won’t, despite having the exact same font/size and even characters. It’s specifically the field itself that seems to not accept the HTML colors.

Even more bizarre, this isn’t even consistent across the cards. Some cards will accept the color codes while other cards won’t. As far as I can tell, it’s random fields across random cards that are broken.

Could you copy your templates content from the card layout screen and post it here?


<span style="font-size: 50px;color: red;">{{Vocab}}</span>


<span style="font-size: 30px;color: blue;">{{Type of word}}</span>




<hr id=answer>

<span style="font-size: 25px;color:green;">{{Reading}}</span>


<span style="font-size: 20px;">{{Meaning}}</span>


<span style="font-size: 25px;">{{Sample}}</span>


<span style="font-size: 30px;color:blue;">{{Character}}</span>


<span style="font-size: 20px;color:purple;">{{Character Meaning}}</span>

Seems to work fine.

Could you post the content of the Styling section too?

Or better yet, export a deck of cards that have this problem and upload it here:

My guess is that some of your fields have formatting inside them that is overriding the template styling. If this is the case, the issue likely existed on older Anki versions as well, and you may be able to clear it with the clear formatting button.

1 Like