To: vim-dev@vim.org Subject: Patch 5.6.043 (extra) Fcc: outbox From: Bram Moolenaar ------------ Patch 5.6.043 (extra) Problem: Win32 GUI: When selecting guifont with the dialog, 'guifont' doesn't include the bold or italic attributes. Solution: Append ":i" and/or ":b" to 'guifont' in gui_mch_init_font(). Files: src/gui_w32.c *** ../vim-5.6.42/src/gui_w32.c Sat Mar 25 18:49:15 2000 --- src/gui_w32.c Thu Mar 30 17:56:53 2000 *************** *** 2716,2722 **** hl_set_font_name(lf.lfFaceName); if (STRCMP(font_name, "*") == 0) { ! p = alloc((unsigned)(strlen(lf.lfFaceName) + 10)); if (p != NULL) { /* make a normal font string out of the lf thing:*/ --- 2716,2722 ---- hl_set_font_name(lf.lfFaceName); if (STRCMP(font_name, "*") == 0) { ! p = alloc((unsigned)(strlen(lf.lfFaceName) + 14)); if (p != NULL) { /* make a normal font string out of the lf thing:*/ *************** *** 2730,2735 **** --- 2730,2739 ---- *p = '_'; ++p; } + if (lf.lfItalic) + strcat(p, ":i"); + if (lf.lfWeight >= FW_BOLD) + strcat(p, ":b"); } } *** ../vim-5.6.42/src/version.c Thu Mar 30 16:58:04 2000 --- src/version.c Thu Mar 30 18:35:12 2000 *************** *** 420,421 **** --- 420,423 ---- { /* Add new patch number below this line */ + /**/ + 43, /**/ -- CRONE: Who sent you? ARTHUR: The Knights Who Say Ni! CRONE: Aaaagh! (she looks around in rear) No! We have no shrubberies here. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\ \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/