alexmojaki / alexmojaki/futurecoder

cursor position misalignment for Unicode characters

オープン
#358 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
1.5k
フォーク
183
PR マージ指標
30日以内にマージされた PR はありません

説明

Maybe it depends on the browser font settings, but I experienced an issue with the cursor position in the editor for some Unicode characters, which does not look correctly calculated. For example:
```python
print('⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪') # MEDIUM WHITE CIRCLE U+26AA
print('❎❎❎❎❎❎❎❎❎❎') # NEGATIVE SQUARED CROSS MARK U+274E
print('○○○○○○○○○○') # WHITE CIRCLE U+25CB
```
In Chrome/Edge, the cursor position is not correct for these characters (in all the three lines):
![image](https://user-images.githubusercontent.com/1481665/174548804-d7b03a4e-56b2-4c9d-9296-afba2a2c83af.png)
but somehow in Firefox the "WHITE CIRCLE"s in the last line are displayed correctly with (I think) a fixed-width font.
![image](https://user-images.githubusercontent.com/1481665/174549068-0d140145-eabf-44e5-b1d8-c88e8b8f1922.png)

In the shell, I have no problem.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。