简体   繁体   English

如何更改 PhpStorm 2017 中的注释字体

[英]How do I change the comment font in PhpStorm 2017

My comment font is written in Persian.我的评论字体是用波斯语写的。 Because the current font does not display properly, I want to change the font.因为当前字体显示不正常,想换字体。 How do I do this?我该怎么做?

截图

Only one font can be used for the whole editor -- you cannot use different fonts for different elements.整个编辑器只能使用一种字体——您不能为不同的元素使用不同的字体。

You can only change font effects (in File | Settings | Editor | Color Scheme | Language Defaults > Doc comment of Line comment).您只能更改字体效果(在文件 | 设置 | 编辑器 | 颜色方案 | 语言默认值 > 行注释的文档注释中)。 You can't assign another font to it.您不能为其分配另一种字体。

I suggest for you that use vs code theme for phpstorm : https://github.com/lenny1882/vscode-dark-plus-webstorm我建议你为 phpstorm 使用 vs 代码主题: https : //github.com/lenny1882/vscode-dark-plus-webstorm

在此处输入图片说明

i have same problem and check system font and find my windows 10 font that create this problem.我有同样的问题并检查系统字体并找到导致此问题的 Windows 10 字体。 in windows 10 font 'Aldhabi' have same style and if you want to remove it, it say this font is protected font and can not removed.在 Windows 10 字体“Aldhabi”中具有相同的样式,如果您想删除它,它会说该字体是受保护的字体并且无法删除。 and i with cmd as admin remove this font from my font folder and every things is ok now.我以 cmd 为管理员从我的字体文件夹中删除了这个字体,现在一切正常。

To do this, follow these steps:为此,请按照下列步骤操作:

File > Settings > Editor > Font ( and also: File > Settings > Editor > Color Scheme > Color Scheme Font)文件 > 设置 > 编辑器 > 字体(还有:文件 > 设置 > 编辑器 > 配色方案 > 配色方案字体)

in the right side, unchecked "Show only monospaced fonts" and then select your favorite font from "Fallback font" dropdown list.在右侧,取消选中“仅显示等宽字体”,然后从“后备字体”下拉列表中选择您喜欢的字体。 for example i selected IRANSans Light (you should install that on your windows) you can use "Tahoma" for example.例如,我选择了 IRANSans Light(你应该在你的窗户上安装它)你可以使用“Tahoma”。

This will display the Farsi language correctly throughout your project code这将在整个项目代码中正确显示波斯语

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM