From owner-freebsd-questions@FreeBSD.ORG Wed Jun 27 12:13:12 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0BE4C16A400 for ; Wed, 27 Jun 2007 12:13:12 +0000 (UTC) (envelope-from nlecic@EUnet.yu) Received: from smtpclu-1.eunet.yu (smtpclu-1.eunet.yu [194.247.192.226]) by mx1.freebsd.org (Postfix) with ESMTP id 90A7413C455 for ; Wed, 27 Jun 2007 12:13:11 +0000 (UTC) (envelope-from nlecic@EUnet.yu) Received: from nyx.localhost (adsl-233-35.eunet.yu [213.198.233.35]) by smtpclu-1.eunet.yu (8.13.6/8.13.6) with ESMTP id l5RCCvMn015478; Wed, 27 Jun 2007 14:13:01 +0200 Message-Id: <200706271213.l5RCCvMn015478@smtpclu-1.eunet.yu> Date: Wed, 27 Jun 2007 14:13:19 +0200 From: Nikola Lecic To: Neil Gruending In-Reply-To: <4681FFD7.60104@gruending.net> References: <4681FFD7.60104@gruending.net> X-Mailer: Claws Mail 2.9.2 (GTK+ 2.10.12; i386-portbld-freebsd6.2) X-Operating-System: FreeBSD 6.2-RELEASE X-Face: pbl6-.[$G'Fi(Ogs2xlXP-V6{3||$Y[LOYs&~GJoikj'cVjcFC[V7du;;0~6nO= [Vi2?uU1Pq~,=Adj@,T:|"`$AF~il]J.Nz#2pU',Y7.{B;m/?{#sO^Dvo$rnmY6] Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-EUNET-AVAS-Milter-Version: 2.0.0 X-AVAS-Virus-Status: clean X-AVAS-Spamd-Symbols: BAYES_50,UNPARSEABLE_RELAY X-AVAS-Spam-Score: 0.0 Cc: neil@gruending.net, freebsd-questions@freebsd.org Subject: Re: gvim can't find a valid font X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 12:13:12 -0000 On Tue, 26 Jun 2007 23:12:39 -0700 Neil Gruending wrote: > Hi, >=20 > I'm having a problem trying to get gvim 7.0.224 working. Every time I=20 > try to start it I get the following error: >=20 > E665: Cannot start GUI, no valid font found=1B|16H=1B|8H=1B|4H=1B|31H >=20 > and I get the console vim instead. I think I've messed up my xorg > fonts somehow after upgrading to 7.2. I followed all of the steps in=20 > /usr/ports/UPGRADING, but I didn't have the xorg metaport installed > so I installed it after upgrading. The first time I started it there > was an error message that said I needed to run a program in the fonts > directory (I forget which one), but I'm pretty sure I didn't fix the > module path before running the command. I'm using the terminal in > Xfce 4.4.1 to try and start gvim. > > Here's part of my xorg.conf (now) in /etc/X11 that seems to be > related to fonts: >=20 > # > ********************************************************************** > # Module section -- this section is used to specify # which > dynamically loadable modules to load. # > ********************************************************************** > # Section "Module" >=20 > # This loads the DBE extension module. >=20 > Load "dbe" # Double buffer extension >=20 > # This loads the miscellaneous extensions module, and disables > # initialisation of the XFree86-DGA extension within that module. > SubSection "extmod" > Option "omit xfree86-dga" # don't initialise the DGA > extension EndSubSection >=20 > # This loads the font modules > Load "type1" > Load "freetype" > # Load "xtt" >=20 > # This loads the GLX module > # Load "glx" > # This loads the DRI module > # Load "dri" >=20 > EndSection >=20 >=20 > # > ********************************************************************** > # Files section. This allows default font and rgb paths to be set # > ********************************************************************** >=20 > Section "Files" >=20 > # The location of the RGB database. Note, this is the name of the > # file minus the extension (like ".txt" or ".db"). There is normally > # no need to change the default. >=20 > # RgbPath "/usr/local/share/X11/rgb" >=20 > # Multiple FontPath entries are allowed (which are concatenated > together), # as well as specifying multiple comma-separated entries > in one FontPath # command (or a combination of both methods) > # > # >=20 > FontPath "/usr/local/lib/X11/fonts/misc/" > FontPath "/usr/local/lib/X11/fonts/TTF/" > FontPath "/usr/local/lib/X11/fonts/OTF" > # FontPath "/usr/local/lib/X11/fonts/Type1/" > FontPath "/usr/local/lib/X11/fonts/100dpi/" > FontPath "/usr/local/lib/X11/fonts/75dpi/" > FontPath "/usr/local/lib/X11/fonts/local/" > # FontPath "/usr/local/lib/X11/fonts/Speedo/" > # FontPath "/usr/local/lib/X11/fonts/TrueType/" > # FontPath "/usr/local/lib/X11/fonts/freefont/" >=20 > # The module search path. The default path is shown here. >=20 > ModulePath "/usr/local/lib/xorg/modules" >=20 > EndSection Hello Neil, This is strange because gVim uses built-in X fonts (i.e. 7x13) if can't find anything else; and your X is running normally, which couldn't be without any font available. So: (1) 'xlsfonts' gives what? (2) Could you please send here a relevant part of ~/.gvimrc? (Also try to start gVim without it.) (3) How did you compile gVim, with WITH_GTK2, or? It's certainly not related to your gVim problem, but as of your xorg.conf, do you have any special reason for commenting out RgbPath and Type1 FontPath? Nikola Le=C4=8Di=C4=87