Skip to content

Incorrectly rendered in Jetbrains Webstorm 2019.2.3 #150

Closed

Description

Environment

Cascadia Code version number: 1910.04
Application (with version) used to display text: Jetbrains Webstorm 2019.2.3
OS platform and version: Windows 10
Screen resolution (i.e. 220dpi): 3840x2160

Any other software?

Steps to reproduce

Change the font setting in Webstorm to use Cascadia Code

Expected behavior

The text of the opened files should be rendered in a readable format

Actual behavior

Almost only strange characters are rendered (see attached screenshot)

Cascadia Code rendered in Webstorm:
cascadio_code_webstorm

Cascadia Code rendered in VSCode:
cascadio_code_vscode

Activity

  1. aaronbell commented on Oct 9, 2019

    @aaronbell
    Collaborator

    I'm not able to repro this bug on my device.

    webbrains

    It looks like there's some really weird swapping happening. Can you try uninstalling the font, redownloading, and re-installing? It might also be worth checking your customization in Webstorm.

  2. aaronbell commented on Oct 9, 2019

    @aaronbell
    Collaborator

    This may also be related to: microsoft/terminal#2979

  3. DHowett-MSFT commented on Oct 9, 2019

    @DHowett-MSFT

    I dunno? On account of the version in Terminal is the same as the one in this repository, it isn’t likely to be why Webstorm/Goland aren’t happy with it.

  4. aaronbell commented on Oct 9, 2019

    @aaronbell
    Collaborator

    Maurits Lourens (@mslourens) Do you have a version of Terminal installed? And which version is it?

    If he hasn't updated, it could be an older version that still has the older version, I wonder.

  5. ForNeVeR commented on Oct 9, 2019

    @ForNeVeR

    These bugs usually happen when there're multiple versions of same font installed in the system.

    1. It could happen if you have both TTF and OTF versions of the same font
    2. It could happen if you have multiple versions of the same TTF font, which could happen in this case:
      • you have some program that uses the font
      • you're trying to update the font
      • Windows is unable to do that (because the font file is still open), so it leaves the old file forever
      • the updated font gets installed with the new name (e.g. Cascadia_1.ttf, something like that)
    3. It could happen if the Windows font cache is corrupted (extremely rare, I wasn't able to observe that in the wild and only causes in specific circumstances in my lab environment)

    How to fix that issue:

    1. Check if you have multiple system-wide installations of the font: dir C:\Windows\Fonts\Cascad*

    2. Check if you have multiple user-specific installations of the font: dir %LOCALAPPDATA%\Microsoft\Windows\Fonts\Cascad*

      (if you have both system-wide and the user-specific font, it could cause the issue, too; please report such cases to JetBrains)

      If you really have multiple font versions installed, then close all programs that could use them, then uninstall the font in question, and manually clean up the remaining font files; after that, install the font to only one place (either system or user).

    3. If everything seems okay but the font still looks wrong, you could try to flush the Windows Font Cache

    If the issue still persists, please tell JetBrains about that (preferably in a new YouTrack ticket).

    In any case, nothing's wrong with the font itself: it is either an OS issue (with Windows Font Cache) or a JetBrains IDE / runtime issue. It is non-actionable from the font authors' side.

  6. mslourens commented on Oct 9, 2019

    @mslourens
    Author

    Friedrich von Never (@ForNeVeR) the steps you provided fixed the issue! Thanx all for your quick response. I will close the issue now.

  7. Sherlock-Holo commented on Oct 9, 2019

    @Sherlock-Holo

    Friedrich von Never (@ForNeVeR) I try to delete Cascadia.ttf and Cascadia_0.ttf from %LOCALAPPDATA%\Microsoft\Windows\Fonts\ , it says system is using it.
    How can I do to delete them

  8. ForNeVeR commented on Oct 9, 2019

    @ForNeVeR

    Sherlock Holo (@Sherlock-Holo), first of all: have you deleted the fonts in the "official" way, via Windows Fonts directory? After you've done that, they sometimes will delete automatically after restart. And sometimes you'll be able to delete them manually after system restart.

  9. Sherlock-Holo commented on Oct 9, 2019

    @Sherlock-Holo

    Friedrich von Never (@ForNeVeR) I can't see this font in windows/fonts directory here

    and I found it in %LOCALAPPDATA%\Microsoft\Windows\Fonts\

  10. Sherlock-Holo commented on Oct 10, 2019

    @Sherlock-Holo

    I delete the font, uninstall windows terminal from UWP setting and reboot and install again, it works well now

  11. miloush commented on Aug 15, 2020

    @miloush

    Any idea how having multiple versions of a font results in the mess in OP's screenshot?

  12. ForNeVeR commented on Aug 15, 2020

    @ForNeVeR

    This is due to a bug in JVM font handling. As far as I understand it while debugging the issue, it somehow messes up the font metadata and the actual font glyphs: it uses the metadata from one font version, and the glyphs from another one, and they rarely match up.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions