mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 9.1.0030: Cannot use terminal alternate font
Problem: Cannot use terminal alternate fonts (PMunch) Solution: Support terminal alternate fonts using CSI SGR 10-20 and t_CF code (PMunch) Add support for alternate font highlighting This adds support for alternate font highlighting using CSI SGR 10-20. Few terminals currently support this, but with added tool support this should improve over time. The change here is more or less taken from how colors are configured and applied, but there might be some parts I missed while implementing it. Changing fonts is done through the new `:hi ctermfont` attribute which takes a number, 0 is the normal font, and the numbers 1-9 select an "alternative" font. Which fonts are in use is up to the terminal. fixes: #13513 closes: #13537 Signed-off-by: PMunch <peterme@peterme.net> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
eb3475df0d
commit
a606f3ac03
@@ -1186,6 +1186,7 @@ typedef struct attr_entry
|
||||
short_u fg_color; // foreground color number
|
||||
short_u bg_color; // background color number
|
||||
short_u ul_color; // underline color number
|
||||
short_u font; // font number
|
||||
# ifdef FEAT_TERMGUICOLORS
|
||||
guicolor_T fg_rgb; // foreground color RGB
|
||||
guicolor_T bg_rgb; // background color RGB
|
||||
|
Reference in New Issue
Block a user