Windows系统中Android Studio无法找到自定义字体Ayuthaya.ttf如何解决?
Hey there, I’ve dealt with this exact scenario before—custom fonts appearing in IntelliJ but missing from Android Studio’s font list. Here are the actionable fixes that worked for me:
Confirm the font is properly installed
Just having theAyuthaya.ttffile on your system isn’t enough. Head to Control Panel > Fonts, search for "Ayuthaya" and make sure it’s listed as installed. If not, right-click the TTF file and select Install to add it to your Windows system fonts.Manually add the font to Android Studio
Android Studio might not have scanned the font automatically. Here’s how to force it:- Open Android Studio and go to
File > Settings > Editor > Font(or for UI fonts,Appearance & Behavior > Appearance > UI Options). - Click the dropdown next to the font selection box and choose Show all fonts.
- In the font manager window, click the
+icon in the top-right corner. - Navigate to the location of
Ayuthaya.ttf(usuallyC:\Windows\Fontsor your custom font folder), select the file, and add it. - You’ll now see Ayuthaya in the font list—select it and apply the settings.
- Open Android Studio and go to
Clear Android Studio’s cache
Stale cache can prevent font list updates. Do this:- Close Android Studio completely.
- Navigate to the cache directory:
C:\Users\<YourUsername>\.AndroidStudio<VersionNumber>\system\caches - Delete all contents inside the
cachesfolder (or the folder itself). - Restart Android Studio and check the font list again.
Update Android Studio to the latest version
Older Android Studio builds might have limited font detection compared to newer IntelliJ versions. Head toHelp > Check for Updatesand install any available stable updates, then restart the IDE.Copy the font to Android Studio’s internal font directory
If all else fails, manually place the font in Android Studio’s JRE fonts folder:- Locate your Android Studio installation path (e.g.,
C:\Program Files\Android\Android Studio\jre\lib\fonts). - Copy
Ayuthaya.ttfinto this folder. - Restart Android Studio—it should now detect the font in the list.
- Locate your Android Studio installation path (e.g.,
Give these steps a shot—one of them should resolve the issue and get Ayuthaya working in your Android Studio setup. 😊
内容的提问来源于stack exchange,提问作者Hayk Mkrtchyan

