X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:from:date:message-id:subject:to
	:content-type; q=dns; s=default; b=LqVxzqNWcNuUkEbmkIQhp54X8SApd
	AjHREr7w00gK1VeMTi52qadu6fz58Y9x6R8QZ+wvTcxgx8THlwk/rxJhKP9TUz+C
	bk6PGeYT0LtH606ESn8rZ2byPPMPompyKut9lxYkQDYeXNexwrzcQeMnzijp4Roo
	4q+S3lzU+LNr9A=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:from:date:message-id:subject:to
	:content-type; s=default; bh=Do+djjLJ4LQy35F2o5kBK/B92q8=; b=itE
	31jUiFaPyUmVRvIdG1LLePHKdsUY21ZPz3QbxDB1ty/3ekN/ZDf88dzp4xN/oGEj
	EoRLPS/uwL/8/FcCgC7HAdI2CfkBy6/t0zzoXtREi56cK4bJrYTH26HzP6opDDbM
	MlNpg2tDRWdW5VoHQRlQA+qL6JYskIhsQuduCaw4=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=stole, Hx-languages-length:1435, texts, solving
X-HELO: mail-it0-f51.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:mime-version:from:date:message-id:subject:to;        bh=0XmqGtcpvkQZ+rdxpUfRyR37UnK2twaWSi4tj+X7gRw=;        b=M6Qkwfm24x6jJqVh1Dep0jDN34Mp6kjWJz6eW8wNhYd1j8Y7HBPG4Mb1kMj4w3tccm         DMtTxSm8Jd5ZtXDmH8MNUkaafLcEHXUTyDDq5H8mhuItHEBMBXoLmoqbfmQBOd0m2vPp         2jHOjCDQBuS8rWd9BfnMWjjdPIavu60JyMapUej0M042T4pCFU0ErxZ/O3RWBbzEs/hb         wOt9Uga3crizGZaIQ5wi6uxKgobhgl2vCKBrRO8qib6gKClMExwCIs2rxBx/qAinGBZW         AWCyTc4+gQA7sDYqOZsWHGsYac6wPK7yeTzslB5IC0dd6Hmk9eihHUAEHvNrN0TvmFrK         Br2Q==
X-Gm-Message-State: AMke39lI/qigJKP6muMdksIUmWIDscMgnCOlzIEkUvG88LYfhZ4Cn6Tz8UTjwIFkJRR5gOEHW4BGirq6AW/VNA==
X-Received: by 10.36.192.214 with SMTP id u205mr7515337itf.8.1488033629638; Sat, 25 Feb 2017 06:40:29 -0800 (PST)
MIME-Version: 1.0
From: Rodrigo Medina <rodrmedina@gmail.com>
Date: Sat, 25 Feb 2017 10:40:29 -0400
Message-ID: <CALjKttmz1X7nUW=b2Vz1C7CwHdjjOyuOVcDkAAT4HKH5_uzrJQ@mail.gmail.com>
Subject: XFIG uses wrong fonts. Solved
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8

Hi,

I am currently installing a new 64bits distribution of cygwin and an
UBUNTU 16.04 in another machine.
In both cases xfig does not find the ghostscript fonts and all the
texts in the drawings
appear with the same default font, making the application practically
useless. The reason
 is the same: the X server is not aware of the ghostscript fonts, as
it can be checked with
 xfontsel, in spite of the fact that the ghostscript package was
installed. I looked into a
frozen 32 bit cygwin distribution running in WXP. In
/etc/X11/fontpath.d/ a symlink pointing
to the directory that contains the gs-fonts is missing:
 xorg-x11-fonts-urw -> /usr/share/ghostscript/fonts

Setting the symlink solved the problem. I think that this bug could be
related to the
ghostscript fonts being installed before the X server.

Solving the problem with ubuntu was not so easy because of the way
that ubuntu uses for
handling the fonts. What I did was to include the path to locate the
ghostscript fonts in the
fontpath, which in ubuntu 16 is:
 /usr/share/fonts/type1/gsfonts

That can be done with xset (each time) or permanently by putting a
configuration file in
/usr/share/X11/xorg.conf.d.  That is not enough, one has also to put
inside the gsfonts
directory a fontmap file. I stole the files fonts.dir and fonts.scale
from the cygwin
distribution and everything was OK.

I hope that this comment could be usefull,

RM

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

