From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60995 Path: news.gmane.org!not-for-mail From: Michael Murphy Newsgroups: gmane.comp.tex.context Subject: Re: xits font in ~/.fonts Date: Tue, 17 Aug 2010 18:27:05 +0200 Message-ID: <4C6AB859.80305@uni-ulm.de> References: <20100817130018.GA19503@khaled-laptop> <4C6A89C7.9090508@wxs.nl> <20100817145331.GE20956@khaled-laptop> <4C6AAA1B.80808@wxs.nl> <20100817160144.GA21509@khaled-laptop> <4C6AB31F.2030109@wxs.nl> 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 1282062458 30032 80.91.229.12 (17 Aug 2010 16:27:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Aug 2010 16:27:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 17 18:27:37 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 1OlP0i-0004RK-SF for gctc-ntg-context-518@m.gmane.org; Tue, 17 Aug 2010 18:27:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 750C8CA562; Tue, 17 Aug 2010 18:27:35 +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 GCbvIWwStN-k; Tue, 17 Aug 2010 18:27:32 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EE58BCA563; Tue, 17 Aug 2010 18:27:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B67C7CA563 for ; Tue, 17 Aug 2010 18:27:30 +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 sywVa8PMOHPb for ; Tue, 17 Aug 2010 18:27:18 +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 DFA3ECA562 for ; Tue, 17 Aug 2010 18:27:18 +0200 (CEST) Original-Received: from mail.uni-ulm.de (mail.uni-ulm.de [134.60.1.11]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7HGRI2R032458 for ; Tue, 17 Aug 2010 18:27:18 +0200 Original-Received: from [192.168.178.46] (p4FEC6527.dip.t-dialin.net [79.236.101.39]) (authenticated bits=0) by mail.uni-ulm.de (8.14.3/8.14.2) with ESMTP id o7HGRG1t013311 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 17 Aug 2010 18:27:16 +0200 (MEST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2 In-Reply-To: <4C6AB31F.2030109@wxs.nl> X-DCC-dcc1.aftenposten.no-Metrics: poseidon 1215; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=134.60.1.11; country=DE; region=01; city=Albert; latitude=47.5833; longitude=8.1167; http://maps.google.com/maps?q=47.5833,8.1167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08CTsri9S - cb5f9b29d0c6 - 20100817 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:60995 Archived-At: I also had problems at first with the XITS fonts, especially with the = built-in typescripts. First, make sure that you have put the fonts somewhere ConTeXt can find = them, and run mtxrun --script font --reload You can check that they have installed properly by running mtxrun --script font --list --all --pattern=3Dxits* and you should see a list of the fonts. Then, copy the typescript from = the XITS font zip file which you can get from Khaled's website. Put this = in the root directory of your .tex file (or in a suitable place in the = ConTeXt tree) and load it in your preamble with \usetypescriptfile[type-xits] I then loaded the font with \usetypescript[xits] \setupbodyfont[xits] You might get conflict with the internal typescipt (although I didn't, = if I remember correctly); if so, rename [xits] in the typescript to = [my-xits], then do \usetypescript[my-xits] \setupbodyfont[my-xits] On 17/08/2010 18:04, Hans Hagen wrote: > On 17-8-2010 6:01, Khaled Hosny wrote: >> On Tue, Aug 17, 2010 at 05:26:19PM +0200, Hans Hagen wrote: >>> On 17-8-2010 4:53, Khaled Hosny wrote: >>>> On Tue, Aug 17, 2010 at 03:08:23PM +0200, Hans Hagen wrote: >>>>> On 17-8-2010 3:00, Khaled Hosny wrote: >>>>> >>>>>> The typescript uses file names, however ConTeXt can not load system >>>>>> fonts by filename. Hans, I think it would be nice to be able to load >>>>>> fonts by either font name or file name regardless of where they >>>>>> reside >>>>>> (I'm not sure how easy is that, though, with luaotfload and kpse >>>>>> setting >>>>>> OSFONTDIR is all what I need, since kpathsea appends it to its font >>>>>> searching paths). >>>>> >>>>> \starttext >>>>> >>>>> \definedfont[vera at 50pt] test >>>>> \definedfont[file:vera.ttf at 100pt] test >>>>> >>>>> \stoptext >>>>> >>>>> works quite ok on my machine and the log reports: >>>>> >>>>> >>>>> >>>>> so it must be something in the typescripts .. maybe the old names? >>>> >>>> This works for me, but not with .otf fonts. >>> >>> \starttext >>> >>> \definedfont[file:STIXGeneral at 100pt] test >>> >>> \stoptext >>> >>> >> >> I'm getting unpredictable results here, some fonts are found and some >> are not, but I can't identify a pattern, I thought it is related to >> symbolic links but could not prove it (replacing symlinks by a copy, and >> updating the databases but still the font is not found by file name). > > files in OSFONTDIR normally are located runtime (no database) .. depends > a bit on the configuration > > Hans > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > _________________________________________________________________________= __________ > > 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 > _________________________________________________________________________= __________ > -- = Michael Murphy MPhys Institute f=FCr Quanteninformationsverarbeitung Universit=E4t Ulm Albert-Einstein-Allee 11 89081 Ulm Deutschland tel +49 731 50 22931 fax +49 731 50 22839 www.quantenbit.de ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________