From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64525 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Minimal ConTeXt and texfont! Date: Tue, 14 Dec 2010 14:26:19 +0100 Message-ID: <4D07707B.3090602@elvenkind.com> References: <4D05E6F1.9080807@ziggo.nl> <4D062BDD.2040601@ziggo.nl> <4D0743A7.5000103@ziggo.nl> <30BEB349-AEB2-4B35-9E6C-E8F5B3479CC2@gmail.com> <4D074CC3.5070600@ziggo.nl> <87bp4oa5uj.fsf@universe.krase.net> <4D076BC8.5050105@ziggo.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292333193 31552 80.91.229.12 (14 Dec 2010 13:26:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Dec 2010 13:26:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 14 14:26:29 2010 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 1PSUth-0001wZ-3F for gctc-ntg-context-518@m.gmane.org; Tue, 14 Dec 2010 14:26:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2F086CA8E8; Tue, 14 Dec 2010 14:26:28 +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 x6airlfj1mU9; Tue, 14 Dec 2010 14:26:24 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 88A00CA8E3; Tue, 14 Dec 2010 14:26:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C9D86CA8E3 for ; Tue, 14 Dec 2010 14:26:22 +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 FHnv4owVINOC for ; Tue, 14 Dec 2010 14:26:20 +0100 (CET) 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 6063CCA8E0 for ; Tue, 14 Dec 2010 14:26:20 +0100 (CET) Original-Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBEDQJto020147 for ; Tue, 14 Dec 2010 14:26:19 +0100 Original-Received: from boo.fritz.box (boo.demon.nl [83.163.247.99]) (authenticated bits=0) by smtp-vbr4.xs4all.nl (8.13.8/8.13.8) with ESMTP id oBEDQJ7X072372; Tue, 14 Dec 2010 14:26:19 +0100 (CET) (envelope-from taco@elvenkind.com) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101030 Mandriva/3.1.6-1mdv2011.0 (2011.0) Thunderbird/3.1.6 In-Reply-To: <4D076BC8.5050105@ziggo.nl> X-Virus-Scanned: by XS4ALL Virus Scanner X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=194.109.24.24; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08DH1qjue - b31cda599431 - 20101214 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:64525 Archived-At: On 12/14/2010 02:06 PM, Verhaag, G.C.H.M. wrote: > Marco Pessotto wrote: > >> Mojca Miklavec writes: >> >> >> >>> On Tue, Dec 14, 2010 at 11:53, Verhaag, G.C.H.M. wrote: >>> >>>> Hi, >>>> >>>> I've put the ttf-file into the texmf-fonts/fonts/data directory, >>>> without the >>>> subdirectories, right? >>>> >>> You either have to put the font into >>> texmf-fonts/fonts/truetype/anywhere >>> or >>> texmf-fonts/fonts/data/anywhere >>> >>> (You can use texmf-fonts, texmf-local, I think that also ~/texmf >>> would work.) >>> >>> The first folder fonts/truetype is appropriate for TrueType fonts only >>> and is a more general location inside TDS (valid for other >>> distributions as well). Any font-related file may go to fonts/data. >>> >>> You forgot the "fonts" subfolder in your earlier message. >>> >>> Mojca >>> >>> >> >> Try this sequece: >> >> copy the .ttf in /tex/texmf-fonts/fonts/truetype/anywhere >> >> mktexlsr >> >> mtxrun --script fonts --reload >> >> context --generate >> >> and finally check with >> >> mtxrun --script font --list if it appears in the list >> >> In my experience (i.e., if i recall correctly) mktexlsr is needed even >> if you use only mkiv. >> >> Bests >> >> >> > Hi, > > Well I've put my ttf into: texmf-fonts/fonts/data, and entered the > following sequence of commands: > > mktexlsr > > mtxrun --scripts fonts --reload > > context --generate > > Then I checked using the following command: > > mtxrun --script fonts --list --all --pattern=*snow* > > which yielded the following output: > > plymouthrocksnowdusted plymouthrocksnowdusted PlymouthSnowDusted.ttf > plymouthrocksnowdustednormal plymouthrocksnowdusted PlymouthSnowDusted.ttf > > So this seams to be okay! > > Next I used the proposed context file: > > \definefont[snowdust][file:snowdusted*default] > \starttext > \snowdust SnowDusted > \stoptext > > This however gives the following output (only part of it!): > ... > bodyfont : 12pt rm is loaded > language : language en is active > systems : begin file test at line 2 > define fonts > font with name snowdusted is not found > define fonts > unknown font snowdusted, loading aborted > define fonts > unable to define snowdusted as \**snowdust** > pages > flushing realpage 1, userpage 1, subpage 1 > systems : end file test at line 4 > system : cont-err loaded > ... > > What does the file-parameter do? I'm somehow lost now, sorry! The file: tries to find a font by file name. In your case, it fails because the font is not called 'snowdusted.ttf', it is 'plymouthsnowdusted.ttf' (the filename is lowercased automatically). So, \definefont[snowdust][file:plymouthsnowdusted*default] should work Best wishes, Taco ___________________________________________________________________________________ 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 ___________________________________________________________________________________