Source Code Pro when it's alredy installed

Answered

Microsoft Windows [Version 10.0.14393]

IntelliJ IDEA 2016.3.4
Build #IC-163.12024.16, built on January 31, 2017
JRE: 1.8.0_121-b13 amd64
JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation

 

If Source Code Pro font is installed system wide it cannot be propertly selected in IDEA settings. Only italics version is shown:

If I remove Source Code Pro from Windows fonts then it can be properly selected in IDEA.

I've got Source Code Pro from their official repository on GitHub because I want to use it in other programs like Git bash console, etc.

 

0
20 comments

There is a related request to remove the bundled font: https://youtrack.jetbrains.com/issue/IDEA-128889.

Does it help if you remove the .ttf files from the resources?

IDEA\lib\resources.jar\fonts\SourceCodePro-Bold.ttf
IDEA\lib\resources.jar\fonts\SourceCodePro-BoldIt.ttf
IDEA\lib\resources.jar\fonts\SourceCodePro-It.ttf
IDEA\lib\resources.jar\fonts\SourceCodePro-Regular.ttf

0

I've just installed the latest version of Source Code Pro system wide (Roman fonts version 2.030 and Italic fonts version 1.050) and can't reproduce the problem in IDEA:

Are you sure you have the same version installed and that all the .ttf files were installed? For some reason you don't have Semibold version, which is probably because not all the .ttf files were installed.

Also try running IDEA with JetBrains Runtime: https://intellij-support.jetbrains.com/hc/articles/206544879. 64-bit version can be found at https://bintray.com/jetbrains/intellij-jdk/openjdk8-windows-x64#files.

0
Avatar
Permanently deleted user

1. Removed fonts from resources.jar - did not help

2. Installed all *.ttf from GitHub distribution - did not help

3. Downloaded custom JDK - did not help.

IntelliJ IDEA 2016.3.4
Build #IC-163.12024.16, built on January 31, 2017
JRE: 1.8.0_112-release-b724 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

This is what I have now:

 

This is what I have in another font selection dialog i.e. all variations are accessible.


Well, I think I'll just live with another font for a while.

0

Try to reinstall the font again - first delete it from Fonts folder in explorer, then check in console that C:\Windows\Fonts (or corresponding folder on your machine) doesn't contain any related files (sometimes they are not deleted completely, but are not visible in standard Windows fonts browser). If files are still present, delete them from console. Then install TTF version of font from GitHub.

0
Avatar
Permanently deleted user

Do you mean I did not install the fonts from the first try? All other programs that perfectly see these fonts in all variants tell me otherwise. But ok, I'll try and let you know.

0

I mean that sometimes there are 'hidden' font files remaining from previous installations that can 'confuse' JDK, and lead to various issues in IDEA.

0
Avatar
Permanently deleted user

Well, just tried, did not help.

1. Removed all Source Code Pro fonts from system. rebooted (just in case, you know). Also, I previously removed them from IDEA resources so this is what I got, no Source Code Pro as expected:

2. Installed all Source Code Pro from GitHub, rebooted.

File encoding is set to UTF-8 if it's relevant.

I definitely don't like these greek letters in sample. Any other font including "Source Code Pro Semibold" show "normal" stuff like this:

Any chance for something cached somewhere? Exactly same issue happens if I edit settings with no project opened though.

0

Did you check font presence in console after deletion, like I suggested? Those 'greek' letters are a symptom of a known issue when such a duplicate installed font is present?

What's the output of the following commands in console:

cd \Windows\Fonts

dir Source*

0
Avatar
Permanently deleted user

Yes I did, I'm slightly familiar with Windows command line basics. Also, this picture shows that after I've removed fonts IDEA did not see any of them, right?

 

Well, I think we are wasting time here, I'm sorry about that. Using just another font does not hurt me so let's close it.

0

Sorry it didn't work for you. Until now similar problems were known to be resolved by font reinstall.

0

Hey guys, I had similar issues with Source Code Pro not properly rendered under Windows 10. I was able to resolve them by copying TTF fonts to the 'fonts' folder under the IDEA's built-in JRE.

More specifically:

1. Get the latest font from github: https://github.com/adobe-fonts/source-code-pro/releases

2. Copy all the TTF files to "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 20xx.y.z\jre64\lib\fonts"

This solves the problem of rendering italic glyphs (those Greek characters). Although, I am still not able to see all the font variants in the font selector drop down list, but that still works fine if I just select Source Code Pro. Hope this helps.

2

The above suggestion worked for me as well, thanks a lot!

0
Avatar
Permanently deleted user

I was able to fix the Source Code Pro always italic issue by doing the same steps that Zhukovin did (copied below here for reference). I'm on macOS Mojave 10.14.6.

 

1. Get the latest font from github: https://github.com/adobe-fonts/source-code-pro/releases

 

For Mac

2. Copy all the TTF files to /Applications/PyCharm.app/Contents/jbr/Contents/Home/lib/fonts

3. In the same directory, rename SourceCodePro-It.ttf to SourceCodePro-Italic.ttf

4. Restart PyCharm

 

For Windows (not tested)

2. Copy all the TTF files to "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 20xx.y.z\jre64\lib\fonts"

3. In the same directory, rename SourceCodePro-It.ttf to SourceCodePro-Italic.ttf

4. Restart PyCharm

 

0

It's not recommended to modify the files under the IDE install directory as it may break patch updates in the future and violate the package signature on macOS.

0
Avatar
Permanently deleted user

@Serge Can you please fix in the next release of PyCharm? Thanks! :)

0

Reinstall the system font, it should work fine in the current IDE versions.

0
Avatar
Permanently deleted user

@Serge I tried that but I get forced to one Source Code Pro option which becomes italic. Screenshot attached.

 

0

Sorry, can't reproduce with PyCharm 2019.2.2 on Windows 10:

There were related fixes for macOS too, but I can't verify it right now: https://youtrack.jetbrains.com/issue/JBR-1778#focus=streamItem-27-3680704.0-0 .

0
Avatar
Permanently deleted user

@Serge Hopefully your team can have someone investigate and try to reproduce on macOS :) Thanks!

0

Please sign in to leave a comment.