X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 67C223858298
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=cs.umass.edu
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.umass.edu
Message-ID: <fe04552e-abe7-4739-9d81-2aa63ef7ce16@cs.umass.edu>
Date: Sat, 8 Oct 2022 09:06:55 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
 Thunderbird/102.3.1
Subject: Re: Frequent Warning messages using gv
To: Adam Dinwoodie <adam@dinwoodie.org>,
        "cygwin@cygwin.com"
 <cygwin@cygwin.com>
References: <DB6P18901MB005555B2082D0EB5F86477B7A45D9@DB6P18901MB0055.EURP189.PROD.OUTLOOK.COM>
 <CA+kUOanZZ4afMEMUxcKT9CzytC_pv2tAJnUpHYZGvFgL==xpVA@mail.gmail.com>
Content-Language: en-US
From: Eliot Moss <moss@cs.umass.edu>
In-Reply-To: <CA+kUOanZZ4afMEMUxcKT9CzytC_pv2tAJnUpHYZGvFgL==xpVA@mail.gmail.com>
X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL,
 KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Reply-To: moss@cs.umass.edu
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On 10/8/2022 8:57 AM, Adam Dinwoodie wrote:
> On Wed, 5 Oct 2022 at 06:46, Fergus Daly wrote:
>> Whenever I use gv on a PostScript file as in
>> $ gv filename.ps
>> then a (usually) successful display is (almost invariably) accompanied by Warning messages about font conversions.
>> It is not obvious what limitations or errors are affecting the displayed output, if any, and I have got into the habit
>> of issuing the command with the qualifier
>> $ gv filename.ps 2> /dev/null
>> However: the Warning messages whilst occasionally very esoteric nearly always include the form
>> Warning: Missing charsets in String to FontSet conversion
>> Warning: Cannot convert string "-*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1" to type FontStruct
>> Warning: Cannot convert string "-*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1" to type FontStruct
>> Warning: Cannot convert string "-*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1" to type FontStruct
>> Warning: Cannot convert string "-*-Helvetica-Medium-R-Normal--*-140-*-*-P-*-ISO8859-1" to type FontStruct
>> Is there some additional fonts package or group of packages that I could usefully incorporate into my Cygwin setup that
>> would reduce warnings when using gv? (And maybe improve the rendering of outputs.)
>> My directory /usr/share/fonts/microsoft/ contains 120+ ttf links, though none looking anything like helv*.
> 
> I doubt it. I'm not familiar with gv, but this looks like you're
> trying to process documents that incorporate Helvetica, in a way that
> requires having the font files, without having the font files.
> Helvetica is a trademark, and the font files are under copyright, so
> no Cygwin package is going to be able to include the fonts or even
> include substitutes with matching filenames.
> 
> You *might* be able to add symlinks from the missing Helvetica files
> to more readily available metric-identical alternatives you already
> have access to, e.g. Arial, MS Sans Serif, or Liberation Sans.
> Otherwise I suspect you need to either avoid processing files that
> incorporate fonts you don't own, or buy copies of the relevant
> Helvetica typefaces.

Something I might try first is researching how fontconfig can allow
you to set up substitutions.

Cheers - Eliot Moss

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