From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119896 invoked by alias); 27 Feb 2015 10:24:34 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 119865 invoked by uid 89); 27 Feb 2015 10:24:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: demumfd001.nsn-inter.net Received: from demumfd001.nsn-inter.net (HELO demumfd001.nsn-inter.net) (93.183.12.32) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 27 Feb 2015 10:24:29 +0000 Received: from demuprx016.emea.nsn-intra.net ([10.150.129.55]) by demumfd001.nsn-inter.net (8.14.3/8.14.3) with ESMTP id t1RAOPEH030541 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 27 Feb 2015 10:24:26 GMT Received: from [10.149.138.145] ([10.149.138.145]) by demuprx016.emea.nsn-intra.net (8.12.11.20060308/8.12.11) with ESMTP id t1RAOOtI003406 for ; Fri, 27 Feb 2015 11:24:25 +0100 Message-ID: <54F045D8.6080105@towo.net> Date: Fri, 27 Feb 2015 10:24:00 -0000 From: Thomas Wolff User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: cygwin-apps@cygwin.com Subject: Re: [ANNOUNCEMENT] Updated: mscgen-0.20-2 References: <54ED794F.30100@towo.net> <54EE31F0.3050005@tiscali.co.uk> <54EF0A72.9020609@towo.net> <54EFA48C.4090100@tiscali.co.uk> In-Reply-To: <54EFA48C.4090100@tiscali.co.uk> X-TagToolbar-Keys: D20150227112424200 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-size: 2635 X-purgate-ID: 151667::1425032666-00007286-80C8E772/0/0 X-SW-Source: 2015-02/txt/msg00319.txt.bz2 On 26.02.2015 23:56, David Stacey wrote: > On 26/02/2015 11:58, Thomas Wolff wrote: >> On 25.02.2015 21:34, David Stacey wrote: >>> On 25/02/2015 07:27, Thomas Wolff wrote: >>>> Am 19.02.2015 um 00:05 schrieb David Stacey: >>>>> The following package has been updated in the Cygwin distribution: >>>>> >>>>> * mscgen-0.20-2 >>>>> >>>>> Mscgen is a small programme that parses Message Sequence Chart >>>>> descriptions and produces PNG, SVG, EPS or server side image maps >>>>> (ismaps) as the output. >>>>> >>>>> This release has been built with libgd3 and three patches from >>>>> Fedora. >>>> Please rebuild the package with >>>> configure --with-freetype >>>> so the font selection option -F can be used. >>> >>> I tried rebuilding with '--with-freetype'. mscgen builds but always >>> exits with an error code. This is because gdImageStringFT() always >>> returns the string 'Could not set character size'. By default, the >>> code is trying to use the 'helvetica' font. I have a goodly >>> selection of font packages installed. Any ideas? >> I had similar problems until I found out how to configure fonts. This >> is very poorly documented. >> With /etc/fonts/fonts.conf pointing to ~/.fonts, it is actually >> sufficient to link your font directory to ~/.fonts >> and you can address all fonts contained therein (including >> subfolders) by their name like in >> mscgen -T png -F "Droid Sans" > > I'm not sure you need to edit /etc/fonts/fonts.conf. No, because it already lists ~/.fonts which gives a user an easy opportunity to make his/her favourite fonts available without digging into fontconfig (if only this option were documented...). > By default, this includes /usr/share/fonts, so any font therein should > be accessible to mscgen. You would only need to do this if you wanted > to use fonts in non-standard locations - such as those from > texlive-collection-fontsextra. > > I wonder if this is a problem with font types? 'fc-match helvetica' > matches a PCF font, and that might explain the error, if libgd3 is > trying to scale a bitmap font. But a TrueType Font such as 'Luxi Sans' > works. Should I just patch mscgen so that the default font is a > TrueType font? That might be a good idea. Be sure to include a dependency to the font package you choose for default, e.g. font-bh-ttf for Luxi Sans, or font-bitstream-vera-ttf for Bitstream Vera Sans; font-cantarell-otf for Cantarell is also a good choice. (I'd suggest not to choose a default from a texlive font package because they are too big for a dependency.) ------ Thomas