How to set font for spell-test ("type:____" field)

When working with the spell test function on Anki Desktop i.e. {{type:WordUnderTest}}, no matter how I set the font family in card styling, it comes out with a very blocky old-style font. It’s fine in English, but my cards have Hebrew and it really looks quite horrible and hard to read. Would love some help in getting it changed.
֬It’s fine when typing the word,

but when the comparison is generated, the font changes

The card template is as follows:

{{Audio}}
REPLAY

<script>
function playAudio(){
var audioDiv = document.getElementById(‘audio’);
var audio = audioDiv.getElementsByTagName(“*”);
audio[0].click();
}
</script>

</br>
</br>
{{hint:Definition}}

</br>
</br>
{{ImagePrompt}}

<br>
{{type:Word}}

You should be able to change the font family of the comparison text on the back of the card by using #typeans as a selector (Styling section).

For example

#typeans {
 font-family: Arial;
}
1 Like

Sorry, I should’ve read more carefully before responding.

That worked perfectly! Thanks so much!

1 Like

Is there a related way to change the font in the text box while typing? Now that the unreadability problem is fixed the mismatch between fonts is annoying me.

Try adding !important

E.g.

#typeans {
 font-family: Arial !important;
}

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