IntelliJ IDEA: how to fix broken font display? - intellij-idea

Unable to read the language. How to set it to english ?

The issue is not with the language, but with some broken font mapping on your system. The workaround is to change IDE font. Press Ctrl+Alt+S to access the Settings dialog, open the second entry from the top and set some font here:

Had same issue with IntelliJ Community Edition, version 2019 2.
Initially the only way I could get the "normal" IntelliJ charset mapping to persist after closing and reopening is go to Settings > Appearance & Behaviours > Appearance and then to UNCHECK Use Custom Font and allow the built-in defaults to be applied.
Later I discovered that I could use all custom fonts except my favorite, Open Sans.
Somehow selecting and applying this font only worked for the remainder of the IntelliJ session. If IntelliJ was closed and reopened, the character mapping was altered in both the Settings page and in the IDE. Each character was represented by the next character alphabetically, e.g. Open Sans ==> Pqdo Tbot
Notice that the first letter of the menus (which has a separate formatting as it's underlined) remains the same while the remainder of the menu title is ampped to the next letter in the alphabet.
The question thus arises: why is Open Sans showing this change of character mapping while other fonts do not ?

Related

File named "auth_actions.dart" won't be highlighted in Intellij-idea

I created a file named "auth_actions.dart" in a dart project(either angular or not). The file content would have text colour being plain white, without any highlighted.
If I rename it to "auth_action.dart" or "auth_actionss.dart", the highlight will come back.
I did some experiments even from some random projects downloaded from github, all of them had this issue.
Anyone know how to fix it? Does anyone see the same issue using the name "auth_actions.dart"?
I assume you accidentally added the file to
Preferences > Editor > File Types > Recognized File Types > Text
Remove it from Registered Patterns to get hightlighting again.
You could accidentally mark it as plain text (the option is in the right-click menu). In this case, the option to mark it back as a Dart file is also in the context menu.

How to set tab indentation with GNAT GPS

I installed GNAT GPS 2017 and I would like it to indent my code with tabs using the same width as 4 space characters. I've gone into Edit->Preferences->Editor->Ada and tried all sorts of options (Use tabulations, default indentation 4, etc) but nothing seems to make it work:
Opening existing file with tabs causes GPS to display tabs with 8 spaces wide instead of 4.
Adding new code causes GPS to indent with 4 spaces but it inserts space characters instead of a single tab character.
Any ideas?
I think that GPS is working as-designed; unfortunately, that isn’t the way you want it to work.
The Preferences > Editor > Ada > Default indentation setting (and the four settings following it) say what screen appearance is required (assuming a monospace font, of course) if you hit the TAB key in a line.
The Preferences > Editor > Ada > Use tabulations setting says whether the editor should use 8-column-width tabs when possible to achieve the above.
#Jean-François Fabre suggested that "Their code parser doesn't support tabulations properly" - I think this may be that Jean-François compiles with -gnaty (style checks), and one of the default style checks is that the file isn’t indented with tabs.

How to modify the font of PhpStorm findbox

How to modify the font of PhpStorm findbox (find text field)? Fonts are windows default simsun! No change options in settings.
Update: this feature is available starting from IntelliJ IDEA 2018.3.1. To make the search/replace fields use the editor font you can add -Dide.find.use.editor.font=true in Help | Edit Custom VM Options and restart the IDE.
Original answer:
At the moment the font used in the text field is hardcoded and you can't change it, please vote for this request and follow it for updates:
IDEA-106651 Editor Search/Replace: use editor font for text input fields
Other related requests:
IDEA-68258 Font in Find/Replace dialog and Find panel same as in editor
IDEA-125920 Make the editor text search bar text-size & font an option.

IntelliJ IDEA - Choosing specific font width within family

I'm on OS X El Capitan running IntelliJ IDEA 15.0.3.
I've been trying to change the font in my IntelliJ IDEA editor, but when I go to select which font to select, the dropdown list only gives me a list of font families, and doesn't allow me to choose individual weights, as I wanted to use the Book font, while IntelliJ uses the Medium font by default. Is there any way to prioritize which weight I want to use?
I found an indirect way by disabling the Medium font file through Font Book, but that kind of bothers me because that disables it for all programs rather than simply IntelliJ.
Thanks in advance.
This should be possible now. I just checked by going to Settings > Editor > Font and different font weights show up correctly in the dropdown:
If you still have this problem, you should file an issue with JetBrains.

True HiDPI in IntelliJ 15

I used to use IntelliJ 14 with the -Dhidpi=true flag in the vmoptions file and didn't have any problems with the scaling. I've just upgraded to 15 and it features "True HiDPI" but it doesn't seem to work on my Surface Pro 3. I chose to import my options from my previous build but I've checked the new vmoptions file and that flag wasn't copied over. The JetBrains site mentions that the flag isn't required anymore anyway. I've looked through the settings dialogs and the only relevant option seems to be the anti-aliasing settings which are defaulted to subpixel (sounds fine to me). Anyone have an idea how to get back to the 14-era scaling? Thanks.
Try changing "Override the default fonts by..." setting in Appearance & Behavior => Appearance tab. It scaled the menu and icons accordingly for me.
Actually, in addition to the setting in
Appearance & Behavior > Appearance
tab, the following font settings have to be changed, too:
Editor > Colors & Fonts > Font
Editor > Colors & Fonts > Console Font (Button Apply editor font setting)
I haven't found a clear and official recipe to get IntelliJ running correctly on a High DPI screen yet (and have also had a support request running a while ago on which I was repeatedly asked to provide new screen shots using new EAP releases), but I think this is the closest you can get with the IntelliJ 15.
Update 2017-20-17:
It looks like JetBrains has noticed that some people have problems with high-DPI screens. There is a new article (with discussion) that suggests some remedies (I haven't tested them yet, as my current setup is more or less usable):
https://intellij-support.jetbrains.com/hc/en-us/articles/115001260010