DevToys icon indicating copy to clipboard operation
DevToys copied to clipboard

Numbers show as box when mixed with Persian

Open ShahriarKh opened this issue 2 years ago • 0 comments

Description

In text editor (for example in URL Encoder), when you first type some number and then a Persian word, it works fine; but when you first type a Persian word and then some numbers, numbers show as boxes. image

I noticed that with some Persian fonts, like "Vazir Code", the numbers show correctly. The surprising reason is that the numbers are automatically converted to Persian! So with a font like JetBrains that doesn't support Persian unicode characters, the numbers don't show correctly.

With Vazir Code font (shows correctly): image

Steps To Reproduce

site.com/2345 گربه (type 2345 then گربه)
site.com/گربه 2345 (type گربه then 2345)

Expected behavior

The editor shouldn't convert characters automatically. The numbers should be shown in fallback font, just like other characters.

DevToys Version

Version 1.0.10.0 | X64 | RELEASE | b949a18 | b949a18

Relevant Assets/Logs

(Already in the description)

ShahriarKh avatar Dec 03 '22 20:12 ShahriarKh