The font used in the template editor, add-on config editor, etc. is hard to read. For example, compare the readability of the left and right sides in the first screenshot below. The left side is harder to read than the right side.
# QFont returns "Kozuka Gothic Pro L" but WebEngine expects "Kozuka Gothic Pro Light"
# - there may be other cases like a trailing 'Bold' that need fixing, but will
# wait for further reports first.
def fontMungeHack(font: str) -> str:
return re.sub(" L$", " Light", font)
Sorry, I was not clear. Anki uses a monospace font in those screens. The exact font depends on what the toolkit selects when a monospace font is specified. We could potentially vary it depending on the platform, but any specific fonts would need to be available on any Windows 10+/macOS 10.13+ system.
@NameLessGO that’s a workaround for a toolkit issue, and does not mean Anki uses that font.
Then, what about using Consolas for Windows? It has been included with Windows since Windows Vista. Here is a screenshot of the same config file with Consolas font.
It is no doubt much easier to read than what the toolkit automatically selects.