[vim/vim] popup with opacity does not use the font of the highlight group (PR #20866)

h_east (Vim Github Repository) <[email protected]> Wed, 29 Jul 2026 03:19:07 -0700
Newsgroups gmane.editors.vim.devel
Message-ID <vim/vim/pull/[email protected]>
```
Problem:  When a popup window has an opacity between 0 and 99 the "font"
          item of its highlight group is ignored and the regular font is
          used instead.  The same applies to "ctermfont", and to the
          popup menu when the "opacity:" value of 'pumopt' is used.
Solution: Also take the font from the popup highlight when blending the
          cell attributes.
```

### Notes

Reported on vim_use: https://groups.google.com/g/vim_use/c/v0sLxH68tVo
Not a regression: the font was never carried over, since 9.2.0017.

Verified manually with MS-Windows gVim.  No test: the font of a cell is
not in a screen dump nor reported by term_scrape().  The "font" item is
not implemented for the GTK GUI, so it cannot be verified there either.
You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20866

-- Commit Summary --

  * popup with opacity does not use the font of the highlight group

-- File Changes --

    M src/highlight.c (13)

-- Patch Links --

https://github.com/vim/vim/pull/20866.patch
https://github.com/vim/vim/pull/20866.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/pull/20866
You are receiving this because you are subscribed to this thread.

Message ID: <vim/vim/pull/[email protected]>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/pull/20866%40github.com.