From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42086 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: fonts (in luatex) (again) Date: Thu, 3 Jul 2008 11:28:50 +0200 Message-ID: <6faad9f00807030228k443f5c84qe313702609b1e867@mail.gmail.com> References: <441B3D72-7906-465D-881E-2A821D1CBFC5@di.unito.it> <82AFE03A-ADC3-452A-9D96-5E4877B52C9E@di.unito.it> <48694AEA.6020900@wxs.nl> <486BA19D.3030103@wxs.nl> <703A5A7C-8784-40A9-9A63-99BD7D6AFE6D@di.unito.it> <486BFCA2.9050806@wxs.nl> <9D7F4A96-1212-4066-9092-756033DA71B7@di.unito.it> <6faad9f00807030057p4b4043deib1f730884c15ffcc@mail.gmail.com> <115224fb0807030148s3b7f3953lc7dbbe925b220da5@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1215077400 4309 80.91.229.12 (3 Jul 2008 09:30:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2008 09:30:00 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 03 11:30:46 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KEL9K-0003XS-7t for gctc-ntg-context-518@m.gmane.org; Thu, 03 Jul 2008 11:30:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ADF701FE1D; Thu, 3 Jul 2008 11:29:52 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12617-01-6; Thu, 3 Jul 2008 11:29:30 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 016051FE36; Thu, 3 Jul 2008 11:29:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CB50F1FE23 for ; Thu, 3 Jul 2008 11:29:27 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09527-02-12 for ; Thu, 3 Jul 2008 11:28:51 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.157]) by ronja.ntg.nl (Postfix) with ESMTP id CEC191FE53 for ; Thu, 3 Jul 2008 11:28:50 +0200 (CEST) Original-Received: by yw-out-1718.google.com with SMTP id 5so455839ywm.74 for ; Thu, 03 Jul 2008 02:28:50 -0700 (PDT) Original-Received: by 10.150.134.21 with SMTP id h21mr15245714ybd.156.1215077330240; Thu, 03 Jul 2008 02:28:50 -0700 (PDT) Original-Received: by 10.150.137.7 with HTTP; Thu, 3 Jul 2008 02:28:50 -0700 (PDT) In-Reply-To: <115224fb0807030148s3b7f3953lc7dbbe925b220da5@mail.gmail.com> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:42086 Archived-At: On Thu, Jul 3, 2008 at 10:48 AM, Wolfgang Schuster wrote: > On Thu, Jul 3, 2008 at 9:57 AM, Mojca Miklavec > wrote: >> On Thu, Jul 3, 2008 at 1:40 AM, Andrea Valle wrote: >>> But, Hans, in the post Mojca says I have the same problem:) >>> uh? >> >> In font-syn.lua there is >> local pathlist = fonts.names.getpaths() >> >> This used to contain some hard-coded paths for Mac users, but then >> Hans switched to reading fonts.conf with >> >> -- name is "fonts.conf" >> local name = fonts.names.xml_configuration_file or "" >> if name ~= "" then >> -- this works on Hans' computer, but not here; name becomes empty >> local name = input.find_file(name,"other") >> -- so this loop is never entered and system fonts are never read >> if name ~= "" then >> collect(xml.collect_texts(xml.load(name),"dir",true)) >> end >> end >> >> I guess that Hans has a fonts.conf in his TeX tree, while Linux & Mac >> users don't, and luaTeX doesn't know where to look for fonts.conf. >> What's worse: I suspect that OSFONTSDIR might be completely ignored. >> >> No, don't ask me where fonts.conf should be. Mine are at >> /Users/mojca/.fonts.conf >> /private/etc/fonts/fonts.conf >> but I have no idea what's the proper/default location if any. > > $TEXMF/fonts/conf/fonts.conf For XeTeX on Windows, yes. But not on other platforms. >> The /private/etc/fonts/fonts.conf one says: >> >> >> ~/.fonts.conf >> >> >> local.conf >> >> So I guess that's where the other one gets included. > > But you need fonts.conf only for XeTeX, LuaTeX (better MkIV) could > find the fonts with the predefined paths in mtxrun. "could" could be read as "should" :) But on the other hand, reading fonts.conf does make sense (if you know where to look for it). It means that you get all the font paths properly set by default already. > elseif name == "macosx" then > fix("OSFONTDIR", > "$HOME/Library/Fonts//;/Library/Fonts//;/System/Library/Fonts//") > else OSFONT[S]DIR (I always forget which one) does get set. But did you try to use any fonts from there? Do they work (with a recent ConTeXt version)? 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________