From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29603 invoked by alias); 4 Apr 2014 09:08:42 -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 29586 invoked by uid 89); 4 Apr 2014 09:08:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ie0-f178.google.com Received: from mail-ie0-f178.google.com (HELO mail-ie0-f178.google.com) (209.85.223.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 04 Apr 2014 09:08:40 +0000 Received: by mail-ie0-f178.google.com with SMTP id lx4so3111083iec.9 for ; Fri, 04 Apr 2014 02:08:38 -0700 (PDT) X-Received: by 10.50.136.229 with SMTP id qd5mr1847483igb.48.1396602518199; Fri, 04 Apr 2014 02:08:38 -0700 (PDT) Received: from [192.168.0.101] (S0106000cf16f58b1.wp.shawcable.net. [24.79.212.134]) by mx.google.com with ESMTPSA id h7sm4403143igy.2.2014.04.04.02.08.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Apr 2014 02:08:36 -0700 (PDT) Message-ID: <533E7696.3080302@users.sourceforge.net> Date: Fri, 04 Apr 2014 09:08:00 -0000 From: "Yaakov (Cygwin/X)" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: cygwin-apps@cygwin.com Subject: Re: fontconfig packaging suggestion References: <533DE610.4020106@cornell.edu> <20140404084006.GE2508@calimero.vinschen.de> In-Reply-To: <20140404084006.GE2508@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2014-04/txt/msg00005.txt.bz2 On 2014-04-04 03:40, Corinna Vinschen wrote: > On Apr 3 18:52, Ken Brown wrote: >> There is a problem with having fontconfig include the Windows Fonts >> directory in /etc/fonts/fonts.conf. Namely, the font cache for that >> directory is very likely to be out of date [*], but most users have >> no idea that they need to run fc-cache to keep it up to date. This >> can cause slowdowns or worse for applications that use fontconfig. >> See, for instance >> http://cygwin.com/ml/cygwin/2013-12/threads.html#00246 and several >> similar reports that came later. >> >> I propose that fontconfig *not* include the Windows Fonts directory, >> but that a new package (perhaps called fontconfig-windows-fonts) be >> created that takes over this functionality. This could either be a >> subpackage of fontconfig or an independent package, in which case I >> would be glad to maintain it. >> >> This package would handle the Windows Fonts directory by creating >> the appropriate file in /etc/fonts/conf.d, and it would also provide >> a script that calls fc-cache to update the Windows Fonts cache. The >> release announcement would warn users that the script should be >> called whenever the Windows Fonts directory changed. And I would >> explicitly advise emacs-X11 users *not* to install the package >> unless they really want to be able to use Windows fonts while >> running emacs under X. >> >> WDYT? The concern is definitely valid and I'm considering various options. > I'm not Yaakov, but, may I throw in a dumb idea? > > What if fontconfig installs scripts for sh and csh in /etc/profile.d, > which has only one task: It checks if the fc cache is older than the > modification date of the Windows fonts directory. If so, it either > calls fc-cache or, if that takes too long, it simply informs the user > in distinct words that fc-cache needs running. > > Would that work? Does it make sense? That's one option, but I'm not sure yet if it covers all possible scenarios. Yaakov