home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / old / 5.6.043 < prev    next >
Encoding:
Internet Message Format  |  2000-03-29  |  1.7 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 5.6.043 (extra)
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.6.043 (extra)
  8. Problem:    Win32 GUI: When selecting guifont with the dialog, 'guifont' 
  9.             doesn't include the bold or italic attributes.
  10. Solution:   Append ":i" and/or ":b" to 'guifont' in gui_mch_init_font().
  11. Files:      src/gui_w32.c
  12.  
  13.  
  14. *** ../vim-5.6.42/src/gui_w32.c    Sat Mar 25 18:49:15 2000
  15. --- src/gui_w32.c    Thu Mar 30 17:56:53 2000
  16. ***************
  17. *** 2716,2722 ****
  18.       hl_set_font_name(lf.lfFaceName);
  19.       if (STRCMP(font_name, "*") == 0)
  20.       {
  21. !     p = alloc((unsigned)(strlen(lf.lfFaceName) + 10));
  22.       if (p != NULL)
  23.       {
  24.           /* make a normal font string out of the lf thing:*/
  25. --- 2716,2722 ----
  26.       hl_set_font_name(lf.lfFaceName);
  27.       if (STRCMP(font_name, "*") == 0)
  28.       {
  29. !     p = alloc((unsigned)(strlen(lf.lfFaceName) + 14));
  30.       if (p != NULL)
  31.       {
  32.           /* make a normal font string out of the lf thing:*/
  33. ***************
  34. *** 2730,2735 ****
  35. --- 2730,2739 ----
  36.               *p = '_';
  37.           ++p;
  38.           }
  39. +         if (lf.lfItalic)
  40. +         strcat(p, ":i");
  41. +         if (lf.lfWeight >= FW_BOLD)
  42. +         strcat(p, ":b");
  43.       }
  44.       }
  45.   
  46. *** ../vim-5.6.42/src/version.c    Thu Mar 30 16:58:04 2000
  47. --- src/version.c    Thu Mar 30 18:35:12 2000
  48. ***************
  49. *** 420,421 ****
  50. --- 420,423 ----
  51.   {   /* Add new patch number below this line */
  52. + /**/
  53. +     43,
  54.   /**/
  55.  
  56. -- 
  57. CRONE:  Who sent you?
  58. ARTHUR: The Knights Who Say Ni!
  59. CRONE:  Aaaagh!  (she looks around in rear) No!  We have no shrubberies here.
  60.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  61.  
  62. /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\
  63. \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/
  64.