解决Android Studio因软件文字(Ui Font Size)过大而显示异常

讲述了作者在新公司安装软件时误设AndroidStudio字体大小,导致无法正常使用。通过StackOverflow找到Windows路径后,作者又找到了Mac的对应配置文件路径并修复了问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

这是一个真实发生在我刚入职新公司调教新电脑时的故事:

This is a real story on my first day in new company while I was installing softwares on the new laptop:

根据新电脑的显示尺寸,我修改了一下As的显示字体大小,但手一抖索多输入了一个数字变成了三位数的字体大小。

Accroding to the size of screen, I adjust the Ui font in setting. But unexpectly miss input one more number, and made the font size value over hundreds.

结果,整个应用变得无法正常显示,也无法正常操作,并且即使我卸载重装也无法将这个尺寸数值变回最初的默认值。

So,  the whole Android Studio became unable to show info properly nether be operated fuctionally. And what's more, the process of unintall and reintsall still can't make it to initial status. 

经过将近一个小时不断寻找,最终在一篇StackOverFlow上的大致找到的解决方案,具体链接如下:

After over an hour searching on net, finally found a solution in StackOverFlow, the link is below:

Huge unusable font size in Android Studio - Stack Overflow

不过因为它提供的是Windows上的路径,而我工作中使用的电脑为mac,于是额外找了一下mac上的对应路径,

Well, the solution provids only the config file path on Windows system, but the laptop of mine is a mac. So, I need to get to know the right path for mac system.

https://developer.android.com/studio/intro/studio-config?hl=zh-cn

"

Windows

语法:%APPDATA%\Google\<product><version>

示例:C:\Users\YourUserName\AppData\Roaming\Google\AndroidStudio4.1

macOS

语法:~/Library/Application Support/Google/<product><version>

示例:~/Library/Application Support/Google/AndroidStudio4.1

Linux

语法:~/.config/Google/<product><version>

示例:~/.config/Google/AndroidStudio4.1

"

解决的要素已经集齐,按解决方式,进入对应的路径找到ui.Inf.xml文件(如我的mac中对应的为“~/Library/Application Support/Google/AndroidStudio2022.3/options”),修改或者增加字体的配置键值对<option name="FONT_SIZE" value="14" />进ui.Inf.xml文件即可。

Now all is needed is here. And what I need to do is to find the file path to ui.Inf.xml(mine is “~/Library/Application Support/Google/AndroidStudio2022.3/options”). And adding or modifying the content of into ui.Inf.xml to make it contains "<option name="FONT_SIZE" value="14" />" is final step.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值