镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

guifontwide fonts do not get larger/smaller when guifont does #1632

Open

Description

@kjoonlee

Steps to reproduce

  1. Install and set different fonts for guifont and guifontwide
  2. Type in English and Korean: 가나다 ABC
  3. Make text larger/smaller

Actual results: only the English text gets larger/smaller; the Korean text stays the same size.

Expected behaviour

Expected results: all text would get larger/smaller

Version of MacVim

r182

MacVim installation method

Downloaded from GitHub release

Environment

macOS version: Sequoia 15.7.3
Mac: MBA M2

Logs and stack traces

Vim and MacVim configuration where issue is reproducable

set guifont=DejaVuSansMono:h20
set guifontwide=D2Coding:h20

Can be reproduced with different guifontwide fonts; one easy-to-get monospaced Korean font is D2Coding-Ver1.3.2-20180524.ttc from https://github.com/naver/d2codingfont/releases/tag/VER1.3.2

How was MacVim launched?

  • by launching MacVim.app in macOS (by using the Dock, Spotlight, or the open command)
  • by running mvim/gvim in the terminal

Issue has been tested with clean configuration

  • by running mvim --clean (or gvim, supplied by MacVim distribution). You can also use the File → "New Clean Window" menu item within MacVim.
  • by running vim --clean (in terminal, supplied by MacVim distribution)
  • by running vim --clean (in terminal, other suppliers, e.g. /usr/bin/vim)

Activity

  1. kjoonlee commented on Feb 10, 2026

    @kjoonlee
    Author

    Ah, this is mentioned in the source:

    // We don't update guifontwide for now, as panel font selection
    // shouldn't affect them. This does mean Cmd +/- does not work for
    // them for now.

  2. kjoonlee commented on Feb 10, 2026

    @kjoonlee
    Author

    I ended up writing a workaround function:

    function! ResizeGuifontWide()
        let g:guifontsize=substitute(&guifont, '^.*:', '', '')
        let g:guifontwidename=substitute(&guifontwide, ':.*', '', '')
        let &guifontwide= g:guifontwidename .. ':' .. g:guifontsize
    endfunction
    

    And I call it on <C-L>:

    nnoremap <C-L> :redraw!<CR>:nohls<CR>:call ResizeGuifontWide()<CR><C-L>
    
  3. ychin commented on Feb 10, 2026

    @ychin
    Member

    Hmm, we should really make it work. This feature should be intuitive.

    Regardless, I actually kind of hate guifontwide to be honest. Can I ask why you use it? My hope is to deprecate the use of guifontwide in the future and just give you the ability to specify multiple fonts in guifont itself (been working on it on and off for a while).

  4. kjoonlee commented on Feb 11, 2026

    @kjoonlee
    Author

    I write bilingual text in Korean and English, and it’s difficult to find a Korean monospaced font that has English letter shapes that I like. (And there aren't that many Korean monospaced fonts, so that doesn't help.)

    So I want to take Korean letter shapes from a Korean font and English letter shapes from an English font and combine those two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions