X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: Fonts look ugly in X with gvim Date: Tue, 22 Apr 2008 20:44:52 +0100 Message-ID: <5E25AF06EFB9EA4A87C19BC98F5C8753A085C0@core-email.int.ascribe.com> From: "Phil Betts" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m3MJjIqU006455 Steven Woody wrote on Tuesday, April 22, 2008 7:32 AM:: > Hi, > > I am using gvim in X window of cygwin. I selected a font Lucida > Typewriter same as I set for my windows version of gvim. Lucida > Typewriter looks good in windows version of gvim, but in cygwin's > gvim, it's ugly, looks like there is a space between every character > and the letters are very thin. Why's the wrong? My font setting > statement is, > > set guifont=Lucida_Sans_Typewriter:h17:cANSI You're trying to use the TTF version of the font. The Xft TTF renderer cannot use the hinting due to patent issues (unless you compile it yourself), which is why the X renditions are often relatively poor. If you really want to use the TTF version, you specify it in your .vimrc like this: set guifont=Lucida\ Sans\ Typewriter\ Semi-Condensed\ 17 You're better off using the PCF form of the font, which you do using: set guifont=LucidaTypewriter\ 17 I can't remember off hand which fonts are in which package, so you may need to install another package. You could also try Lucida Console, which is a similar monospaced font. > I also tried the Bitstream. When I use the menu edit->select font, I > selected the bitstream versa sans mono in the font selecting dialog. > This way it worked and the bitstream looked not bad ( I still need the > Lucida thought ), and when I type in > > set guifont > > in the command mode to see the font name, I got the font's name > > guifont=Bitstream Versa Sans Mono 18 ^^^^^ It's Vera > But the problem is I can not made this setting forever in vimrc file, > the statement > > set guifont="Bitstream Versa Sans Mono 18" You need to escape the spaces using backslashes. set guifont=Bitstream\ Vera\ Sans\ Mono\ 18 This is documented in vim's help (:help guifont) > will put the font settting back to its default, the guifont variable > was not set and became empty string. and, I also tried > > set guifont=Bitstream_Versa_San_Mono:h18:cANSI ^^^^^ ^^^ That's the OSX syntax, which is also documented in the help. Phil This email has been scanned by Ascribe Plc using Microsoft Antigen for Exchange. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/