akiyosi / goneovim

A GUI frontend for neovim.
MIT License
2.37k stars 62 forks source link

Markdown **bold** not rendered as bold. #410

Open proofer opened 2 years ago

proofer commented 2 years ago

Editing an .md file, with :set conceallevel=0 (default), I see this: **foo** and __bar__ i.e., I see the word "foo" in plain style and the word "bar" in italic style. (Ignore apparent spaces after or before asterisks or underlines; they're an artifact ot backticks used in composing this issue post.)

With :set conceallevel=2 the asterisks and underlines disappear but the styles don't change.

Summary: Markdown italic works, but bold doesn't work. In nvim/Terminal.app bold is rendered in red letters rather than in bold style, and italic (underline before and after) does not work.

I have the Menlo typeface specified in settings.toml; Menlo has bold and italic variants. I also have Menlo specified in Terminal.app preferences.

nightly-1-gccee4b8

akiyosi commented 1 year ago

@proofer Hi, Sorry for late reply. In summary, am I correct in understanding that in buffers of Markdown file types, the bold style is not applied and the normal style is used? (I also understand that this is essentially a file type-independent issue.)

If so, it is most likely a font typeface issue. For example, what about other font typefaces?

I understand that you have Menlo set up in your environment and that this font also has a bold typeface. Goneovim uses Qt for its GUI framework, and I believe the issue is whether the Qt framework properly associates and recognizes the bold typeface in the given font family.

proofer commented 1 year ago

@akiyosi Correct. Because the issue is not in goneovim I'll close it.

akiyosi commented 1 year ago

@proofer Please don't get me wrong, the above comment is a general statement, but at this point I am not sure if the problem is caused by goneovim, Qt, or the OS environment.

If you could provide me with additional information, such as how the problem is reproduced in different font typefaces, I would be more than willing to help investigate the cause on an ongoing basis in terms of the goneovim.

proofer commented 1 year ago

@akiyosi The only two monospaced typefaces with regular, bold, and italic styles that I have are Courier New and Menlo. I see the issue of bold displaying in regular style in .md files only with Menlo; with Courier New, bold does display correctly. I don't know what might explain the "deficiency" of Menlo.

macOS 12.6 Characteristics of typefaces based on Font Book application.