Loading ...
Sorry, an error occurred while loading the content.

vim60d guifontset not work and patch

Expand Messages
  • Sung-Hyun Nam
    Hello, I doubt it occurs only to me. guifontset does not work. gvim runs with default font (-adobe-*). Don t know my patch is correct, but seems work to me.
    Message 1 of 3 , Aug 3, 2000
    • 0 Attachment
      Hello,

      I doubt it occurs only to me. guifontset does not work.
      gvim runs with default font (-adobe-*).
      Don't know my patch is correct, but seems work to me.

      regards,

      namsh

      diff -u -u -r1.4 gui.c
      --- ./gui.c 2000/08/04 03:23:36 1.4
      +++ ./gui.c 2000/08/04 04:52:29
      @@ -389,6 +389,10 @@
      */
      if (font_argument != NULL)
      set_option_value((char_u *)"gfn", 0L, (char_u *)font_argument, FALSE);
      +#ifdef FEAT_XFONTSET
      + if (*p_guifontset == NUL
      + || gui_init_font(p_guifontset, TRUE) == FAIL)
      +#endif
      if (gui_init_font(p_guifont, FALSE) == FAIL)
      goto error2;
      #ifdef FEAT_MBYTE


      Another infos are:
      :r!uname
      Linux

      :ver
      VIM - Vi IMproved 6.0d ALPHA (2000 Jul 30, compiled Aug 4 2000 13:53:24)
      Compiled by namsh@...
      Normal version with GTK GUI. Features included (+) or not (-):
      +autocmd -balloon_eval +browse +builtin_terms +byte_offset +cindent
      +cmdline_compl +cmdline_info +comments +cryptv -cscope +dialog_con_gui
      +digraphs -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi
      +file_in_path -osfiletype +find_in_path -footer +fork() +gettext -hangul_input
      +insert_expand -langmap +libcall -line_highlight +linebreak +lispindent
      +localmap +menu +mksession +modify_fname +mouse +mouseshape -mouse_dec
      -mouse_gpm -mouse_jsbterm -mouse_netterm +mouse_xterm +multi_byte +multi_lang
      +path_extra -perl -python +quickfix -rightleft +scrollbind -signs +smartindent
      -sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static
      -tag_any_white -tcl +terminfo +textobjects +title +toolbar +user_commands
      +vertsplit +virtualedit +visual +visualextra +viminfo +wildignore +wildmenu
      +windows +writebackup +X11 +xfontset +xim +xterm_clipboard -xterm_save
      system vimrc file: "$VIM/vimrc"
      user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
      system gvimrc file: "$VIM/gvimrc"
      user gvimrc file: "$HOME/.gvimrc"
      system menu file: "$VIMRUNTIME/menu.vim"
      fall-back for $VIM: "/usr/local/share/vim"
      Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -I/usr/lib/glib
      /include -I/usr/X11R6/include -O2 -pipe -Wall -I/usr/X11R6/include
      Linking: gcc -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib
      -ldl -lXext -L/usr/X11R6/lib -o vim -lXt -lncurses -ldl
    • Bram Moolenaar
      ... That looks like a good solution. Fontset must be used when it s set. I ll include this. -- hundred-and-one symptoms of being an internet addict: 102.
      Message 2 of 3 , Aug 4, 2000
      • 0 Attachment
        Sung-Hyun Nam wrote:

        > I doubt it occurs only to me. guifontset does not work.
        > gvim runs with default font (-adobe-*).
        > Don't know my patch is correct, but seems work to me.

        That looks like a good solution. Fontset must be used when it's set. I'll
        include this.

        --
        hundred-and-one symptoms of being an internet addict:
        102. When filling out your driver's license application, you give
        your IP address.

        /// Bram Moolenaar Bram@... http://www.moolenaar.net \\\
        \\\ Vim: http://www.vim.org ICCF Holland: http://iccf-holland.org ///
      • Takuhiro Nishioka
        Hello, ... I had the same problem too. It works well thanks! -- Takuhiro Nishioka mailto:takuhiro@super.win.ne.jp
        Message 3 of 3 , Aug 4, 2000
        • 0 Attachment
          Hello,

          Sung-Hyun Nam wrote:
          > I doubt it occurs only to me. guifontset does not work.
          > gvim runs with default font (-adobe-*).

          I had the same problem too. It works well thanks!

          --
          Takuhiro Nishioka mailto:takuhiro@...
        Your message has been successfully submitted and would be delivered to recipients shortly.