macvim-dev / macvim-dev/macvim
`:highlight Group font=xyz` doesn't do anything.
还没有人认领这个 Issue。
- 主要语言
- Vim Script
- 星标
- 7.9k
- 派生
- 691
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi! I wanted to try to do this trick in MacVim, basically using two different fonts at the same time (specifically Fira Code for operator ligatures and Operator Mono for everything else).
Looking through the docs, it seemed like setting the font on a highlight group was my best bet (like :highlight MyGroup font='Fira Code:h16') but it didn't work. If i misspell the font's name it generates an error which it doesn't normally, so it's clearly recognizing the font-name. But nothing happens, it doesn't actually apply the font to the highlight group in MacVim (I also checked that the group was a valid group by changing guifg=white, and it is valid). I'm using Core Text renderer, but it seems like it doesn't work either way.
I don't know if this is a problem with core vim or MacVim, but it seemed to be a GUI issue, so I'm reporting it here. If it's a known limitation of MacVim, it should probably be noted in the docs.
BTW, given that this is my first time communicating with this project: thanks for all your hard work and for providing the best GUI version of Vim there is! MacVim is so much better than the options on other OS's, at least as far as I've tried.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用文档中记录的 highlight-font 设置和一个有效的 highlight 组,在启用和不启用 Core Text 渲染器的情况下复现 MacVim 中 :highlight 字体的行为。跟踪字体属性是由 MacVim 还是 core Vim 处理的,然后确认字体是否会被应用,或者是否应记录这一限制。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- macos, vim
- 领域
- desktop
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100