From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39346 Path: news.gmane.org!not-for-mail From: weg@indiscrete.org (Eythan Weg) Newsgroups: gmane.comp.tex.context Subject: Re: Two questions about use of system ttf fonts Date: Sat, 01 Mar 2008 09:59:56 -0500 Message-ID: <87y792xzf7.fsf@indiscrete.org> References: <87r6evztpb.fsf@indiscrete.org> <47C83C3F.1080409@wxs.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" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1204383697 25978 80.91.229.12 (1 Mar 2008 15:01:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Mar 2008 15:01:37 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 01 16:02:02 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 1JVTDu-0004ex-6i for gctc-ntg-context-518@m.gmane.org; Sat, 01 Mar 2008 16:02:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D66A01FBA8; Sat, 1 Mar 2008 16:01:28 +0100 (CET) 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 32324-01-6; Sat, 1 Mar 2008 16:00:47 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CA5481FB82; Sat, 1 Mar 2008 16:00:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5DFCA1FB82 for ; Sat, 1 Mar 2008 16:00:46 +0100 (CET) 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 32746-01-3 for ; Sat, 1 Mar 2008 16:00:12 +0100 (CET) Original-Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by ronja.ntg.nl (Postfix) with ESMTP id 09BB91FB5B for ; Sat, 1 Mar 2008 16:00:09 +0100 (CET) Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JVTC0-0005eg-Jh for ntg-context@ntg.nl; Sat, 01 Mar 2008 15:00:05 +0000 Original-Received: from 74-140-110-141.dhcp.insightbb.com ([74.140.110.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Mar 2008 15:00:04 +0000 Original-Received: from weg by 74-140-110-141.dhcp.insightbb.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Mar 2008 15:00:04 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 57 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 74-140-110-141.dhcp.insightbb.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:FHwE/JvYdnRX8fnQT9bNyNvULpI= 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:39346 Archived-At: Hans Hagen Fri, 29 Feb 2008 18:09:19 +0100 Eythan Weg wrote: > Hi, > > I am trying to use truetype fonts with mkiv. > > When loading a font given a full path name like > this: > > \font\test=/usr/share/fonts/truetype/freefont/FreeSans.ttf at 12pt do you need to provide the full path? It turns out that I do not. But I thought it should work even when OSFONTDIR is not defined. why not set OSFONTDIR? OSFONTDIR=/usr/share/fonts/truetype/freefont// or so Well, this type of definition fails with error "error >> define font: font with name ... is not found" But this OSFONTDIR=/usr/share/fonts/truetype/freefont works. Also this OSFONTDIR=/usr/share/fonts/truetype/{freefont,ttf-dejavu} but these do not: OSFONTDIR=/usr/share/fonts/truetype/{freefont;ttf-dejavu} OSFONTDIR=/usr/share/fonts/truetype/{freefont:ttf-dejavu} OSFONTDIR=/usr/share/fonts/truetype/{freefont,ttf-dejavu}// Also a definition that works in the shell, fails when appears only in texmf.cnf when TEXMFCNF is defined in the shell. Luatex with plain format does read texmf.cnf and correctly interpret all the above variations including OSFONTDIR=/usr/share/fonts/truetype//. Thank you, eythan ___________________________________________________________________________________ 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 ___________________________________________________________________________________