arduino / Arduino

Arduino IDE 1.x
https://www.arduino.cc/en/software
Other
14.15k stars 7.01k forks source link

Chinese font width error when using third party font #10933

Open sb-child opened 3 years ago

sb-child commented 3 years ago

Hi, When I change default font to some third party font such as editor.font=Source Code Pro,plain,13 and editor.font=JetBrains Mono,plain,13 in preferences.txt, Chinese font width(2 English character width) narrowed, but display as expected. When selecting Chinese text, the highlight width is only one English character width. img

Arduino IDE version: 1.8.13 (also tested in the nighty version)
Operating system: Archlinux
per1234 commented 3 years ago

Thanks for reporting this bug @sb-child!

In case it might be of use during the investigation, I'll add a note that this seems similar to https://github.com/arduino/Arduino/issues/9858