microsoft / cascadia-code

This is a fun, new monospaced font that includes programming ligatures and is designed to enhance the modern look and feel of the Windows Terminal.
Other
25.64k stars 804 forks source link

Italic doesn't work in MacVim #490

Closed georgevreilly closed 3 years ago

georgevreilly commented 3 years ago

Various flavors of Vim support italic fonts in syntax highlighting. However, this doesn't work with Cascadia Code or Cascadia Mono. It's almost certainly because the italic fonts are in distinct font families.

To reproduce

  1. Launch MacVim. I'm running macOS Big Sur 11.4, but I expect this will reproduce on other versions of macOS.
  2. Type :setfiletype flexwiki to set the current buffer into FlexWiki mode.
  3. Enter a line that looks like This text is _emphasized_ and this is *strong*.
  4. Launch the font dialog: :set guifont=*
  5. Choose different fonts. Many fonts, including Source Code Pro, JetBrains Mono, and SF Mono will show _emphasized_ in an italic font and *strong* in a bold font, with the rest in the regular font. The Cascadia fonts handle *strong* correctly, but not _emphasized_.
Screen Shot 2021-06-01 at 11 01 23 AM Screen Shot 2021-06-01 at 11 03 26 AM
DHowett commented 3 years ago

It would have been very helpful had you filled out the bug template ☹️

Which variants of Cascadia did you install? Variable TTF? OTF? Static TTF? Static OTF? WOFF2?

aaronbell commented 3 years ago

This should be resolved the next time a font release is issued via the fix for #481

georgevreilly commented 3 years ago

@Dhowett, I poked around in the issues to see if a similar issue had been reported, didn't find any, and clicked New Issue. No template appeared, so I wrote it up freeform.

I installed all the fonts in the otf/static directory of CascadiaCode-2105.24.zip

aaronbell commented 3 years ago

Thanks for the additional context. This is definitely a dupe of #481 and will be solved with the next release. I suggest trying the variable font version in the meantime.