Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5956

Visual Studio Code on Ubuntu displays incorrect characters in languages with diacritical marks

$
0
0

I have tried changing to various fonts in VSCode such as Consolas, Monospace, and many other monospace fonts. In all cases, they display characters incorrectly.

The following text will be used to test the display in VSCode:

Phương pháp sSMC-FCM hồi quy được trình bày ở mục\ref{sec:ssmc_fcm_regression} và cách thức dựđoán dung lượng Pin từphương pháp này (mục\ref{sec:build_battery_capacity_prediction_model}) sẽđược sử dụng đểthực hiện thử nghiệm dựđoán dung lượng Pin. So sánh với phương phápnày sẽ là các thuật toán học máy khác lần lượt là CatBoost, LightGBM,CART, XGBoost, Random Forest và Multi Layer Perceptron.

Here is an example of how VSCode on Ubuntu display Vietnamese characters with Consolas font:

enter image description here

The highlighted words are the ones that are displayed incorrectly. The diacritical marks on these words are misaligned from their correct positions. Below is the same text displayed correctly with Consolas font in Text Editor, the default text editing software on Ubuntu:

I have tried using various fonts, and monospace fonts like Consolas display incorrectly in VSCode. However, when I tried using Times New Roman, VSCode displayed the diacritical marks correctly. Unfortunately, this font does not look very good for writing code. Here is an example of how VSCode on Ubuntu display Vietnamese characters with Consolas font:

enter image description here

How can I fix this issue?


Viewing all articles
Browse latest Browse all 5956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>