Using Cascadia Code font shows garbled text
- Dominant language
- Java
- Stars
- 14.6k
- Forks
- 7k
- PR merge metrics
- No merged PRs in 30d
Description
I used the Arduino IDE with a modified font : Cascadia Code. I have modified `preferences.txt` to include the line:
`editor.font=Cascadia Code,plain,16`
All was well, until I installed the preview build of Windows Terminal from the Windows Store, and i believe a modified version of the Cascadia Code font was then installed as well. When I started up Arduino IDE after this, some function names were garbled and unrecognizable. I confirmed the following:
1. this is a result of setting 'Cascadia Code' editor font in Arduino IDE. When I set another font, the issue is not present.
2. The issue is purely visual. When I copied the source with the garbled charactes to i.e. Visual Studio Code, the source code was intact, what is should be.
3. This is in Arduino IDE 1.8.12. I tested and confirmed that the issue is also present in the latest "hourly build" of Arduino IDE, at this time version 1.8.14 dated 2020/7/3 04:33 which is on the website labeled "LAST UPDATE 23 July 2020 16:25:17 GMT". However the function names setup and loop were not garbled, but instead the module name Serial was.
Again I *suspect* that it has something to to with installation of Windows Terminal as I happen to know that a newer font "Cascadia Code" was installed along with it. This is Windows Terminal version: 1.1.2021.0. The release notes says: This version of Windows Terminal ships with Cascadia Code 2007.15.
Screen shots:

Contributor guide
Research direction
Reproduce the issue in Arduino IDE 1.x on Windows using preferences.txt with editor.font=Cascadia Code,plain,16 and the Cascadia Code version installed with Windows Terminal. Compare the garbled editor display with another font and verify that source text remains intact; done means function and module names render correctly with Cascadia Code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100