subframe7536 / maple-font

[try V7!] Maple Mono: Open source monospace font with round corner, ligatures and Nerd-Font for IDE and command line. 带连字和控制台图标的圆角等宽字体,中英文宽度完美2:1
SIL Open Font License 1.1
4.49k stars 62 forks source link

WezTerm下字体间距显示异常 #82

Closed Rain-Bus closed 1 year ago

Rain-Bus commented 1 year ago

下面几张图分别是在 Microsoft Terminal、Alacritty 和 WezTerm 中的显示效果。

可以看到最后一行对于 downlad 这个单词的显示,WezTerm 中的 dooa 的显示相较于其他终端,字母间的间距异常。

WezTerm.lua

local wezterm = require 'wezterm'

local default_shell = function()

end

return {
  font = wezterm.font('Maple Mono SC NF'),
}

调整字体大小后WezTerm的显示效果会好一些,字体大小为 12.0 时,字体异常现象尤为明显。

相较于 Alacritty,WezTerm 渲染出来的字体显示效果明显有所不足。我觉得应该是 WezTerm 字体渲染的问题,但是我想问一下字体这边可以设置一些参数使其达到 MicroSoft Terminal 或者 Alacritty 的显示效果吗?

subframe7536 commented 1 year ago

https://wezfurlong.org/wezterm/config/lua/config/freetype_load_flags.html

try NO_HINTING or NO_AUTOHINT

Rain-Bus commented 1 year ago

完美解决,谢谢大佬。