Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JetBrains, IntelliJ] Bold and italic rendering bug #50

Closed
coreequip opened this issue Aug 31, 2015 · 24 comments
Closed

[JetBrains, IntelliJ] Bold and italic rendering bug #50

coreequip opened this issue Aug 31, 2015 · 24 comments

Comments

@coreequip
Copy link

There is a bug under Windows 8.1 (TTFs) rendering the words MEDIA_TYPE in bold, italic. See:

hack-bug

Besides this: Thanks for the font!

@cjstehno
Copy link

I ran into this issue as well on Windows 7 using TTF version with Java constant names (e.g. NEXT_STATE_KEY), which render in bold italic similar to the image shown above.

@chrissimpkins
Copy link
Member

What text editors are you using?

@cjstehno
Copy link

IntelliJ

On Mon, Aug 31, 2015, 12:23 PM Chris Simpkins notifications@github.com
wrote:

What text editors are you using?


Reply to this email directly or view it on GitHub
#50 (comment).

Christopher J Stehno
chris.stehno@gmail.com
http://stehno.com

@chrissimpkins
Copy link
Member

There seem to be a number of unusual rendering errors in IntelliJ (and other JetBrains editors). See issues #45 and #42.

I will check their issue tracker today to see if any of these issues have previously been reported. If not, will add a new issue and see if we get any feedback. Sorry for the troubles.

@jorgheymans
Copy link
Contributor

Note that the Idea products (intellij, rubymine etc) are all based on the same runtime so if you manage to find a solution for one it is likely that "it will work for the others as well (tm)"

@jorgheymans
Copy link
Contributor

having said that, intellij 15 will have "True HiDPI Support for Windows and Linux" which likely impacts font rendering : http://blog.jetbrains.com/idea/2015/06/intellij-idea-15-eap-is-open/ ... so we would need to test it on that version as well.

@Estigy
Copy link

Estigy commented Sep 1, 2015

Bug #60 is also related to this. Thanks for investigating!

@zlangbert
Copy link

I can confirm I see this bug in the latest Intellij 15 EAP

@chrissimpkins
Copy link
Member

Received report via Twitter that a (possible) workaround on the JetBrains editors is to turn off the bold highlighting.
cn0sfrmwgaan_z8

Clearly that may not be of interest to you if you like the bold highlighting, but I link it for any who wants to make this issue go away until it is resolved.

Another message that there is a JetBrains bug report dealing with this:

https://youtrack.jetbrains.com/issue/IDEA-138241

in which they point the finger at Java:

https://bugs.openjdk.java.net/browse/JDK-8078382

More info when available. I will follow these issues.

@chrissimpkins chrissimpkins changed the title Rendering bug [JetBrains, IntelliJ] Bold and italic rendering bug Sep 2, 2015
@ciscorucinski
Copy link

@chrissimpkins I am having this issue too, but I am actually wondering if this is a WINDOWS problem or a naming problem. I am only having issues with just Italics.

I am on Windows 10

I installed all 4 fonts; however, the fonts at C:\Windows\Fonts\Hack only show 2 fonts for me. Regular and Bold. There are no Italics or Bold Italics that are displayed. First clue!

So, I decided to delete the Hack fonts group. C:\Windows\Fonts and look for Hack. It shows its a group of fonts. Good. So I delete the group, and Windows tells me, "Are you sure you want to delete these 2 fonts permanently?" Only 2?? I know I installed all 4. In fact this is my 3rd time installing Hack just to make sure everything I did was right. Clue 2!

Click "Yes", and the Hack group is gone. Good. However, suprisingly, "Hack RegularOblique Italic" is now showing! However, I don't see the Bold-Italics...all that is showing is Italics. Clue 3!

Lets go check out my IDE, but first restart the IDE to clear any cache of the fonts...this is one of the fonts that was not working correctly. TADA! My italics now works correctly!! However, my regular font and bold font don't work. I did test Bold-Italics and that has issues, too. Clue 4!

OK, so now lets delete the Italics at C:\Windows\Fonts. I find it and delete it. I get the message, "Are you sure you want to delete this font permanently?" and it displays the name "Hack-Oblique". Remember the name displayed at C:\Windows\Fonts\ is "Hack RegularOblique Italic". Maybe this is a hint at a naming issue???? Anyways, I click "Yes", and... (Clue 5)

...no surprise. "Hack BoldOblique Bold Italic" is now displayed. I could repeat everything; however, we know what will happen in my IDE. Everything won't work except for Bold-Italics.

So, lets delete "Hack BoldOblique Bold Italic", which prompts me and says the name is "Hack-BoldOblique". Click "Yes", and Hack is no longer installed on my machine

@ciscorucinski
Copy link

Summary of above:

  • I am on Windows 10.
  • Installed all 4 fonts styles on my machine
  • My C:\Windows\Fonts shows only shows 2 fonts; other 2 fonts are hidden!
  • The fonts that are hidden are not being displayed correctly on my machine
  • Deleting the 2 fonts that are visible will allow the italics to become visible.
  • Deleting the italics that is visible will allow the bold-italics to become visible
  • Only the currently visible items in C:\Windows\Fonts will be displayed correctly in the IDE

@chrissimpkins
Copy link
Member

@ciscorucinski incredibly helpful. Let me look at the name tables.

@chrissimpkins
Copy link
Member

Another issue report from @TrevorHayes re: the styles issues in Windows:

I've tried installing both the ttf and otf files into my copy of Windows 7 Enterprise SP1 and while Windows will install either set of files in both cases the font family shows up with only the "regular" and "bold" fonts. If I use the font in an application, italics do not work. If I delete those two fonts then one of the oblique fonts will appear as the only font and then if I delete that the other oblique font will appear.

@Sustak
Copy link

Sustak commented Sep 4, 2015

I'm confirming the issue in Windows 10 with NetBeans IDE. The behaviour is exactly as described by @ciscorucinski above. Installing the OTF fonts instead produces exactly the same problem.

I'm joining the others: thanks for the font, it's simply great!

@ciscorucinski
Copy link

@chrissimpkins OK. ...well we have identified and confirmed an issue here, but we don't know if everyone that is having similar issues is dealing with the issue we just found. Also, I assume this isn't a naming issue that you could identify, right?

@coreequip @cjstehno @zlangbert @Estigy Can you all confirm that you have the same issue?

@chrissimpkins with all of these issues, did you notice if all of these are only effecting Windows? On issue #60, this issue doesn't seem to be present on Linux. This would imply a possible Windows bug??

@chrissimpkins
Copy link
Member

Will you please give these new builds a try (v2.012)? I've updated the name tables and adjusted the font names based upon what is currently recommended for cross-platform support. Let's see if this addresses this issue.

Download Links
Regular
Bold
Italic
BoldItalic

@TrevorHayes
Copy link

This has fixed the issue for me - Windows recognizes all 4 fonts as belonging to the same family at once and the font now appears correctly in the IntelliJ IDE as well.

Thanks!

@ciscorucinski
Copy link

Yes, v2.012 does fix this issue. I have not done any extensive checking, but all 4 fonts appear as the same font-family (nothing hidden), and my Android Studio IDE font settings are working as I want them.

@chrissimpkins
Copy link
Member

@TrevorHayes @ciscorucinski 👍

@Sustak
Copy link

Sustak commented Sep 5, 2015

The same here, Win10 recognizes all 4 fonts in the Hack family and NetBeans works with the bold italics font without the above issues.
Once again thanks, @chrissimpkins!

@chrissimpkins
Copy link
Member

@Sustak excellent. Glad to hear that. Thanks for the report and the confirmations of the fix. Will merge to master and release this fix over the weekend

@angrilove
Copy link

Fix it.Good job.

@chrissimpkins
Copy link
Member

@angrilove Great, thank you!

@chrissimpkins
Copy link
Member

Thanks for this issue report and for all of the testing/feedback that all of you provided. This fix is now live in v2.013.

@ciscorucinski your comments in this thread led to this fix and it addressed several other issues that were reported. I'd like to add you to the contributors list if you don't mind emailing me your name.

Closing this issue as fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

10 participants