delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/22/20:56:43

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <ed4892840804221756i5bdf5a77k23cb9ea8c953e2c@mail.gmail.com>
Date: Wed, 23 Apr 2008 08:56:09 +0800
From: "Steven Woody" <narkewoody AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Fonts look ugly in X with gvim
In-Reply-To: <5E25AF06EFB9EA4A87C19BC98F5C8753A085C0@core-email.int.ascribe.com>
MIME-Version: 1.0
References: <5E25AF06EFB9EA4A87C19BC98F5C8753A085C0 AT core-email DOT int DOT ascribe DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Wed, Apr 23, 2008 at 3:44 AM, Phil Betts <Phil DOT Betts AT ascribe DOT com> wrote:
> 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.

I can only get TTF version of Lucida Typewriter.  How do one enable
the hinting in cygwin/X?  You know many can do this on real linux box.

>
>  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

Thanks for the `escape' think, I leaned the 'underline' syntax from
windows version of gvim, and I don't know it is actually wrong for
cygwin/X.

>
>  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.

As I said, there are extra space between every two characters.

>
>
>  > 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/
>
>



-- 
woody

then sun rose thinly from the sea and the old man could see the other
boats, low on the water and well in toward the shore, spread out
across the current.

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019