I used Anki 24 for a long time. When I started testing Anki 26, I noticed that Arabic text is shifted upward (I know that line height for Arabic is higher than English in my system font (ubuntu)). This shift makes the upper part of the text invisible. I then confirmed that the issue is also present in Anki 25. I think it may be due to upgraded QT version.
This screenshot is from Anki 24.
This is from 25 and 26.
I know that for web (CSS), I can fix this issue by changing line-height property to 1, but I have no experience with QT.
After changing the system font to noto sans Arabic, the issue resolved, however, everything consumes more vertical space now:
I think when I used a font that doesn’t contain the Arabic glyphs, Qt was asking for the font height, it finds it a certain height. When I type an Arabic glyph, Qt doesn’t find the glyph in that font, it fallbacks to Noto Sans Arabic to borrow a glyph. Since Noto Sans Arabic has a larger line height, it overflows. However, I don’t know why Qt5 handles it better than Qt6.