1
0
forked from aniani/vim

patch 8.1.1224: MS-Windows: cannot specify font weight

Problem:    MS-Windows: cannot specify font weight.
Solution:   Add the "W" option to 'guifont'. (closes #4309)  Move GUI font
            explanation out of options.txt.
This commit is contained in:
Bram Moolenaar
2019-04-28 14:02:47 +02:00
parent 564344ace9
commit f720d0a77e
6 changed files with 172 additions and 134 deletions

View File

@@ -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;