From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77645 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Font recognition with command "context", but not with command "texexec" Date: Mon, 30 Jul 2012 11:16:44 +0200 Message-ID: References: <50143956.7040208@gmail.com> <898BA0E1-27D9-4180-8436-556C2D2C3126@gmail.com> <50153D27.2060502@gmail.com> <5015C1AB.6040101@wxs.nl> <20120730090651.GC7157@khaled-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1343639814 16691 80.91.229.3 (30 Jul 2012 09:16:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2012 09:16:54 +0000 (UTC) Cc: Hans Hagen To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 30 11:16:53 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Svm5s-0000Tj-6T for gctc-ntg-context-518@m.gmane.org; Mon, 30 Jul 2012 11:16:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 345F51022A; Mon, 30 Jul 2012 11:16:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id bg3vBCfpSduS; Mon, 30 Jul 2012 11:16:49 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6334F101F5; Mon, 30 Jul 2012 11:16:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7B151101F5 for ; Mon, 30 Jul 2012 11:16:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TvmpxBYTmQiT for ; Mon, 30 Jul 2012 11:16:46 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id AEB9C101DD for ; Mon, 30 Jul 2012 11:16:46 +0200 (CEST) Original-Received: from mail-qa0-f41.google.com (mail-qa0-f41.google.com [209.85.216.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q6U9Gj21007192 for ; Mon, 30 Jul 2012 11:16:45 +0200 Original-Received: by qabg27 with SMTP id g27so850056qab.14 for ; Mon, 30 Jul 2012 02:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RXb0AOpla6XKtsL57PjDDTX+whYiWptiMURBCC0FebQ=; b=ebKHDy38M1QqAfUKvT/ebVx4DbOMa5fYhONcLrkb6jSJtpzW/6zIvJvMzo4CLF2s8f hADbTMd6srwTsUBRL2JhjLYUUhZ2pxcjz6MQzGmCVldc4GoU0PhM4G6Ks9hYIIyeGMzW 1+zus/wzvGBmMNJTrpVK0Vxfv3skfoReXPZAvZ+aMZyD7RLYXWP1hpbTpwOkgTLNvdmS a2vXmSvDRQJWUPyT3bLcNqYddT29VXx2iPgVwBwgNACozyx3VV1hX7t80cg1Zv23fMnO O5Jo8w1WLRWgiluaz6Xb5/hKCNBHJllvX1Iq2sYXbwVMb3wK4+R7ZAg58Y+xvP5PACVo 8SJQ== Original-Received: by 10.224.101.193 with SMTP id d1mr22114731qao.20.1343639804892; Mon, 30 Jul 2012 02:16:44 -0700 (PDT) Original-Received: by 10.229.242.131 with HTTP; Mon, 30 Jul 2012 02:16:44 -0700 (PDT) In-Reply-To: <20120730090651.GC7157@khaled-laptop> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RHExgJCU - e5e2ea37a758 - 20120730 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77645 Archived-At: On Mon, Jul 30, 2012 at 11:06 AM, Khaled Hosny wrote: > On Mon, Jul 30, 2012 at 09:50:44AM +0200, Mojca Miklavec wrote: >> On Mon, Jul 30, 2012 at 1:05 AM, Hans Hagen wrote: >> > On 29-7-2012 22:36, Mojca Miklavec wrote: >> >> >> >> For MKII the answer is no. MKIV can - to a >> >> certain extent - read and interpret fontconfig's XML configuration >> >> file. The real question is whether ConTeXt finds the right file. On >> >> windows there is fonts.conf used by XeTeX and it might be that MKIV >> >> reads that file, but I'm not sure. >> > >> > >> > Last time I checked (more than a year ago) it did read that file. >> >> What I have in mind is that it's far from being trivial to find the >> right fonts.conf, on linux in particular. On my mac I have: >> >> /Applications/Gimp.app/Contents/Resources/etc/fonts/fonts.conf >> /Applications/MPlayer OSX Extended.app/Contents/Resources/fonts/fonts.conf >> /opt/local/etc/fonts/fonts.conf >> /usr/X11/lib/X11/fontconfig/conf.avail/05-osx-fonts.conf >> /usr/X11/lib/X11/fontconfig/conf.d/05-osx-fonts.conf >> /usr/X11/lib/X11/fontconfig/fonts.conf >> >> So feel free to guess which one to use ;) >> >> I believe that one should at least consider >> /usr/X11/lib/X11/fontconfig/fonts.conf & >> /usr/X11/lib/X11/fontconfig/conf.d/05-osx-fonts.conf in my case, but >> there is no "include the other file", so ConTeXt would actually have >> to start reading both. > > fonts.conf should have something like: > > conf.d Oh, sorry, that's right. I missed that one. > no? Here it does, otherwise fontconfig itself has no way of reading > other files. But the whole thing is tricky, because the default path to > the root fonts.conf file is set into libfontconfig at build time, > ConTeXt has no way of knowing that, short of linking to libfontconfig. > >> The first two files are bundled with applications (Gimp, MPlayer) and >> aso have their own caches & their own settings, so when users start >> messing and configuring the system-wide settings, those two >> applications won't obey those anyway. > > Which is very pointless, there should be only one fontconfig installed > system wide, but that mac anyway :) I might be wrong, but I tend to believe that Mac doesn't ship with fontconfig at all. Or rather, fontconfig is part of X11 only (which is part of OS X) and I've heard rumors that 10.8 doesn't ship with X11 by default. I believe it's the other way around: applications on Mac should not use fontconfig ;), but when they do (most of them being ported from linux), they cannot rely on fontconfig's presence on the system. It's more or less the same situation on windows. When you launch VLC, MPlayer, gnuplot/wxt or XeTeX after a long time, it spends the first minute refreshing font cache. Mojca ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________