Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.46k stars 170 forks source link

font_width and unicode_full_width was useful #1386

Closed ElnathK closed 6 years ago

ElnathK commented 6 years ago

many fixed-width fonts(aka monospaced typefaces) have not full glyphs because there are too many unicode characters over 60,000 (and people are creating emoji or discovering characters). If main font don't have a parts of language, then os substitute alternative font automatically registered in registry.(CudaText cannot assign alternative typeface.) the problem is below. MonoTest.txt (ÆÐ and other characters are wide in some fonts, aren't wide in other fonts.) (Screenshot using Cobalt theme: 1.48.0; Default Theme: 1.49.1)

  1. cudatext using proportional font looks like monospaced font. There is no other choice. (99% of cudatext users may use fixed width font, I guess..) a

  2. if substitude fonts are fixed width fonts, widths or sizes are different. For example, Ume Gothic Font does not have korean and other glyphs. substituted font(default font) is monospace(I thought) but widths and sizes are different. b

  3. Sometimes the widths of glyph in monospace font are different. For examples, Google Noto Sans Mono(a.k.a. Adobe Source Han Sans HW) is monospace, but widths of glyph are different(korean: 920, japanese, CJK unified ideographs and extensions: 1000,) And font size may affects. c d

  4. besides, cudatext delete font width options after 1.49.0... font width option and unicode_full_width option affected the alignment of the columns. it can resolve font size problem. e

D2Coding Or Hanazono Mincho(Serif but monospace) 12 size in 1.49.1 looks neat, nearly perfect. but on 16 size, it looks untidy. but 1.48.0 can fix columns.

f g h i

j k l m So, I think those-deleted-options still useful in many non-alphabet language such as CJK. Half-width monospace typeface users think that those options are useless, Also, using cudatext as source coding hardly use cjk language.(mainly use english) But there is possible using other language.

ps: I found cudatext 1.49.1 cannot show U+FF0C(,; FULLWIDTH COMMA) and their blocks. two fonts have glyph but I saw this glyph in old version. Need to check char map block from 'Private Use Area' to 'Specials'

Alexey-T commented 6 years ago

Fixed showing gliphs for codes 0xE000..FFFF Agree with you, and will restore options but maybe with other nice names

Alexey-T commented 6 years ago

Beta https://sourceforge.net/projects/cudatext/files/beta_version/ has restored options. one option is renamed. (see history.txt)

Alexey-T commented 6 years ago

It will be good if you advertize the app on Korean forums.