From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67128 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Stefan_M=FCller?= Newsgroups: gmane.comp.tex.context Subject: Re: (RSFS) font installation Date: Fri, 18 Mar 2011 12:26:17 +0100 Message-ID: <4D834159.7070607@gmx.de> References: <4D80C291.5090707@gmx.de> <4D81CECD.5020405@gmx.de> <4D823CA6.6060404@gmx.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1300447611 29755 80.91.229.12 (18 Mar 2011 11:26:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2011 11:26:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 18 12:26:42 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q0XpJ-0003pM-TY for gctc-ntg-context-518@m.gmane.org; Fri, 18 Mar 2011 12:26:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A39CFCAAF3; Fri, 18 Mar 2011 12:26:37 +0100 (CET) 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 58pwTB5Di0pQ; Fri, 18 Mar 2011 12:26:34 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D60FECAADC; Fri, 18 Mar 2011 12:26:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 03D3FCAADC for ; Fri, 18 Mar 2011 12:26:33 +0100 (CET) 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 fWgSN3UmXPMh for ; Fri, 18 Mar 2011 12:26:21 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id D852FCAAD0 for ; Fri, 18 Mar 2011 12:26:21 +0100 (CET) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id p2IBQOIq009098 for ; Fri, 18 Mar 2011 12:26:25 +0100 Original-Received: (qmail invoked by alias); 18 Mar 2011 11:26:24 -0000 Original-Received: from 77-64-135-9.dynamic.primacom.net (EHLO [192.168.100.108]) [77.64.135.9] by mail.gmx.net (mp035) with SMTP; 18 Mar 2011 12:26:24 +0100 X-Authenticated: #11064435 X-Provags-ID: V01U2FsdGVkX1+zFOtwv+CzxD2w1+cgTrfGjxl3bFXczQ8UsY7JHv 21lWmpww+X6gDr User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.23; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0cEkzqoCJ - 5f5dbcbfa7d2 - 20110318 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:67128 Archived-At: On 18.03.2011 03:42, mathew wrote: > On Mar 17, 2011, at 11:53, Stefan M=FCller wrote: >> Yes, I thought so. I just asked, because I couldn't find an environment = variable with that name. Even after "setuptex.bat" typing "echo %OSFONTDIR%= " did only print "%OSFONTDIR%" and not a list of paths, as I expected. > > There are defaults baked into the binaries. If you don't set the environm= ent variable, you get the built-in defaults. That's generally how things wo= rk on Unix. Alright, that would explain it. > On Mar 17, 2011, at 11:53, Stefan M=FCller wrote: >> (2A) Put .afm files to C:\Windows\Fonts >> (2B) Put the complete rsfs (containing the .afm and all the other stuff)= directory to texmf-fonts\fonts > > Right... From the point of view of ConTeXt/LuaTeX use, there's no need fo= r the fonts to be installed in Windows; you just need to have all the files= somewhere that OSFONTDIR (or the default font paths) will point. The font = outlines will be embedded into the PDF by default, so the OS doesn't need t= o have access to them. The point I was trying to make here was that on my system I _needed_ to = install the fonts in Windows first. Otherwise mtxrun wouldn't find them, = no matter where the afm files were. This is maybe because of the = directory structure, but I have no idea, especially as somewhere it was = stated that I should just "put the directory there". I have the following: texmf-fonts \ fonts \ rsfs \ *.mf texmf-fonts \ fonts \ rsfs \ type1 \ *.pfb texmf-fonts \ fonts \ rsfs \ type1 \ afm \ *.afm texmf-fonts \ fonts \ rsfs \ type1 \ map \ *.map texmf-fonts \ fonts \ rsfs \ type1 \ pfm \ *.pfm mtxrun finds the pfb (pfm) in C:\Windows\Fonts and the afm files here. = But it doesn't look for the pfb (pfm) in texmf-fonts... Is this because = of the "legacy" issue? It's pretty inconvenient. >> - In both versions, step (1) seems to be mandatory. I would expect, that= the rsfs directory in texmf-fonts\fonts should be enough, as mtxrun clearl= y searches there and all the files are there, too. I don't understand the p= roblem here. > > Hmm, that *would* explain my problem with getting GhostScript's Type 1 fo= nts working... I must investigate further! > >> - If the .pfm and .pfb files are sufficient for Windows, why does mtxrun= specifically search for .afm files and not also for .pfm? > > Probably because mtxrun (and the rest of ConTeXt and LuaTeX) are written = for Unix and ported to Windows, and Unix uses .afm files for metrics. (Exce= pt OS X, which is different for historical reasons.) > > That and .afm files are much easier to work with because they're text fil= es. > > But it might not be a bad idea for LuaTeX to automatically perform a pfm2= afm conversion and cache the converted files when necessary, and probably n= ot that hard to code. On the other hand, Type 1 fonts are legacy at this po= int, so it might not be worth it. > > > mathew I'll keep in mind that the type1 fonts are obsolete. I just thought it = would be a nice idea to try "getting some font" with the rsfs first, as = there were "full examples" (which do not work here for some reason) on = the mailing list. Thanks for the help, Stefan. ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________