Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Italic doesn't work in MacVim #490

Closed
georgevreilly opened this issue Jun 1, 2021 · 4 comments
Closed

Italic doesn't work in MacVim #490

georgevreilly opened this issue Jun 1, 2021 · 4 comments

Comments

@georgevreilly
Copy link

georgevreilly commented Jun 1, 2021

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
Copy link
Member

DHowett commented Jun 1, 2021

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
Copy link
Collaborator

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

@georgevreilly
Copy link
Author

@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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants