feat: add Vazirmatn fallback font for Arabic/Persian
Bundles Vazirmatn (WOFF2) in public/font/vazirmatn/ to avoid runtime external font requests. Adds @font-face with Arabic unicode ranges and includes OFL.txt. Updates the global font stack to use Vazirmatn as a fallback after Inter, so Arabic/Persian text renders more cleanly without changing the UI font for everyone.
In general, I don't think adding a new fallback font for every script that renders incorrectly (which is most of them at the moment, as far as I can tell) is a scalable solution. A more broadly suitable approach is to allow in-client configuration of fonts, including system-provided fonts, so that rendering concerns for non-latin scripts can be handled on an individual basis. See the above-linked issue on adding such support.
In general, I don't think adding a new fallback font for every script that renders incorrectly (which is most of them at the moment, as far as I can tell) is a scalable solution. A more broadly suitable approach is to allow in-client configuration of fonts, including system-provided fonts, so that rendering concerns for non-latin scripts can be handled on an individual basis. See the above-linked issue on adding such support.
I agree that user-configurable fonts (#2619) is valuable, but it doesn’t fully solve this problem in practice for Arabic/Persian:
- Many users (especially on mobile) can’t realistically install additional system fonts, so “pick a system font” often won’t include something like Vazirmatn.
- A lot of real usage is mixed English + Persian/Arabic. A good fallback stack is the common approach in chat apps (Telegram-style), because it preserves the Latin UI typography while improving Arabic-script readability.
- This PR is intentionally narrow: it adds a single Arabic-script fallback via
unicode-range, so it doesn’t change Latin UI rendering and doesn’t attempt to add “a font per script”.
If maintainers still prefer “config-only”, I understand. But I think a targeted Arabic-script fallback is a practical baseline improvement for a large user group, while font configuration can remain an additional power-user feature.