diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-28 14:02:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-28 14:02:47 +0200 |
commit | f720d0a77e393990b2171a77210565bdc82064f2 (patch) | |
tree | 06c64d67d8893900e2244a53c09722d697f6a466 /src/os_mswin.c | |
parent | 564344ace9ef06b22e4e60a0196c41b410ac27da (diff) | |
download | vim-git-f720d0a77e393990b2171a77210565bdc82064f2.tar.gz |
patch 8.1.1224: MS-Windows: cannot specify font weightv8.1.1224
Problem: MS-Windows: cannot specify font weight.
Solution: Add the "W" option to 'guifont'. (closes #4309) Move GUI font
explanation out of options.txt.
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r-- | src/os_mswin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c index 48be0de52..503d3d7d7 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -2992,6 +2992,9 @@ get_logfont( case L'w': lf->lfWidth = points_to_pixels(p, &p, FALSE, (long_i)printer_dc); break; + case L'W': + lf->lfWeight = wcstol(p, &p, 10); + break; case L'b': lf->lfWeight = FW_BOLD; break; |