如何修复PhpStorm 2019.3.2中波斯语字体不可读及更换字体问题?
Hey there, I’ve run into similar right-to-left (RTL) font rendering issues in older JetBrains IDE versions like PhpStorm 2019.3.2, so let me walk you through exactly how to fix the unreadable Persian/Arabic text and customize your font settings.
Fixing Unreadable Persian/Arabic Fonts in PhpStorm 2019.3.2
Step 1: Switch to a Persian/Arabic-Compatible Primary Font
The most common culprit is PhpStorm’s default font lacking full support for Persian character shaping. Here’s how to swap it out:
- Open PhpStorm’s Settings: Go to
File > Settings(or use shortcutsCtrl+Alt+Son Windows/Linux,Cmd+,on macOS) - Navigate to the
Editor > Fontsection - In the Primary font dropdown, pick a font built for Persian/Arabic. Top reliable options include:
- Vazirmatn (a clean, modern Persian font with excellent RTL rendering)
- IRANSans (a widely used standard Persian font)
- Noto Sans Arabic (Google’s open-source font that fully supports all Arabic script languages)
- If your preferred font isn’t listed, install it via your OS’s font manager first, then restart PhpStorm—it will appear in the dropdown after a reboot.
- Adjust the Size slider to boost readability, then hit
ApplyandOK.
Step 2: Enable Bidirectional Text Support
Older PhpStorm versions might have RTL support disabled by default. Let’s turn it on:
- Stay in Settings, and navigate to
Editor > General > Appearance - Look for the Enable bidirectional text support option (if you don’t see it here, check
Editor > Font > Advanced—labels can vary slightly in 2019.3.2) - Check this box to ensure proper alignment and character shaping for Persian/Arabic text
- Save changes and restart PhpStorm to let the setting take effect.
Step 3: Fix Persian/Arabic Text in the IDE UI
If the problem affects menus, tooltips, or other UI elements (not just the code editor):
- Go to
Appearance & Behavior > Appearancein Settings - Under UI Options, select a Persian-compatible font from the UI font dropdown (use the same fonts recommended earlier)
- Adjust the UI font size if needed, apply changes, and restart PhpStorm.
Quick Troubleshooting Tips
- If the font doesn’t appear after installation: Always restart PhpStorm—older versions don’t automatically detect new system fonts.
- If characters are still distorted: Try disabling Ligatures in
Editor > Font > Advanced. Some ligature settings can break RTL character rendering in 2019.3.2. - Check file-specific overrides: If only certain files have issues, right-click the file in the project pane, go to
File Properties > Editor Font, and make sure no custom font (that doesn’t support Persian) is set for that file.
内容的提问来源于stack exchange,提问作者Faraz salehi
相关产品推荐
相关产品推荐

