From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39337 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Two questions about use of system ttf fonts Date: Fri, 29 Feb 2008 19:00:48 +0100 Message-ID: <20080229190048.9b3a0c94.schuster.wolfgang@googlemail.com> References: <87r6evztpb.fsf@indiscrete.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Fri__29_Feb_2008_19_00_48_+0100_TrpwAPKZg6Q8_.Y_" X-Trace: ger.gmane.org 1204308162 21390 80.91.229.12 (29 Feb 2008 18:02:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Feb 2008 18:02:42 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 29 19:03:04 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 1JV9ZS-0004og-LH for gctc-ntg-context-518@m.gmane.org; Fri, 29 Feb 2008 19:02:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 240701FB8E; Fri, 29 Feb 2008 19:02:16 +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 26218-01-8; Fri, 29 Feb 2008 19:01:34 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 27E601FB60; Fri, 29 Feb 2008 19:01:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CB1841FB14 for ; Fri, 29 Feb 2008 19:01:31 +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 29694-01-2 for ; Fri, 29 Feb 2008 19:00:54 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by ronja.ntg.nl (Postfix) with ESMTP id 902751FB60 for ; Fri, 29 Feb 2008 19:00:54 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id e12so2909740fga.8 for ; Fri, 29 Feb 2008 10:00:54 -0800 (PST) Original-Received: by 10.86.62.3 with SMTP id k3mr10951108fga.8.1204308054143; Fri, 29 Feb 2008 10:00:54 -0800 (PST) Original-Received: from rover ( [91.41.73.98]) by mx.google.com with ESMTPS id e32sm18223986fke.10.2008.02.29.10.00.51 (version=SSLv3 cipher=OTHER); Fri, 29 Feb 2008 10:00:52 -0800 (PST) In-Reply-To: <87r6evztpb.fsf@indiscrete.org> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.10.14; i686-pc-mingw32) 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:39337 Archived-At: This is a multi-part message in MIME format. --Multipart=_Fri__29_Feb_2008_19_00_48_+0100_TrpwAPKZg6Q8_.Y_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi Eythan, i wrote a typescriptfile for the complete family, you try if it will work for you. For all toher interested people, you could download the fonts from the following page (scroll down to the section "Downloading fonts"): http://www.gnu.org/software/freefont/ Wolfgang On Fri, 29 Feb 2008 10:08:16 -0500 weg@indiscrete.org (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 > > the log shows > > report >> load otf: loading: /usr/share/fonts/truetype/freefont//FreeSans.ttf > report >> load otf: enhance: before > report >> load otf: enhance: enrich > report >> load otf: enhance: registering tlig feature > report >> load otf: enhance: registering trep feature > report >> load otf: enhance: flatten > report >> load otf: flattening 'specifications' tables > report >> load otf: flattening 'anchor' tables > report >> load otf: flattening 'gpos' tables > report >> load otf: flattening 'gsub' tables > report >> load otf: enhance: analyze > report >> load otf: enhance: after > report >> load otf: replacing 'kerns' tables by 'mykerns' tables > report >> load otf: enhance: patch > report >> load otf: enhance: strip > report >> load otf: enhance: pack > report >> load otf: file size: 458648 > report >> load otf: saving: in cache > fonts : resetting map file list > {/usr/local/share/texmf/fonts/map/pdftex/context/original-empty.map} > fonts : using map file: original-base > {/usr/local/share/texmf/fonts/map/pdftex/context/original-base.map} > fonts : using map file: lm-math > {/usr/share/texmf/fonts/map/dvips/lm/lm-math.map} > fonts : using map file: lm-rm > {/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} > fonts : using map file: original-ams-base > {/usr/local/share/texmf/fonts/map/pdftex/context/original-ams-base.map} > fonts : using map file: original-ams-euler > {/usr/local/share/texmf/fonts/map/pdftex/context/original-ams-euler.map} > fonts : using map file: original-public-lm > {/usr/local/share/texmf/fonts/map/pdftex/context/original-public-lm.map} [1.1] > systems : end file 11 at line 24 > ) > !luaTeX error (file FreeSans.ttf): cannot open OpenType font file for reading > ==> Fatal error occurred, no output PDF file produced! > > > How can I tell what's wrong? > > > > Defining > > \font\test=FreeSans.ttf at 12pt > > results in > > error >> define font: font with name FreeSans is not found > error >> define font: name: FreeSans, loading aborted > ! Font \test=FreeSans at 12pt not loadable: metric data not found or bad. > > while using this construction with luatex's plain format seems to work > (I assume some definition to register the font). > > What does context need to find the font? > > Thanks, 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 > ___________________________________________________________________________________ --Multipart=_Fri__29_Feb_2008_19_00_48_+0100_TrpwAPKZg6Q8_.Y_ Content-Type: text/x-tex; name="freefont.tex" Content-Disposition: attachment; filename="freefont.tex" Content-Transfer-Encoding: 7bit \usetypefile[freefont] \usetypescript[freefont] \setupbodyfont[freefont] \def\Example{ABC abc 123\space} \starttext \rm \Example \bf \Example \it \Example \bi \Example \tf\ss \Example \bf \Example \it \Example \bi \Example \tf\tt \Example \bf \Example \it \Example \bi \Example \stoptext --Multipart=_Fri__29_Feb_2008_19_00_48_+0100_TrpwAPKZg6Q8_.Y_ Content-Type: text/x-tex; name="type-freefont.tex" Content-Disposition: attachment; filename="type-freefont.tex" Content-Transfer-Encoding: 7bit \starttypescript[serif][freeserif] \definefontsynonym[Serif] [FreeSerif-Regular] [features=default] \definefontsynonym[SerifBold] [FreeSerif-Bold] [features=default] \definefontsynonym[SerifItalic] [FreeSerif-Italic] [features=default] \definefontsynonym[SerifSlanted] [FreeSerif-Italic] [features=default] \definefontsynonym[SerifBoldItalic] [FreeSerif-BoldItalic][features=default] \definefontsynonym[SerifBoldSlanted][FreeSerif-BoldItalic][features=default] \stoptypescript \starttypescript[sans][freesans] \definefontsynonym[Sans] [FreeSans-Regular] [features=default] \definefontsynonym[SansBold] [FreeSans-Bold] [features=default] \definefontsynonym[SansItalic] [FreeSans-Italic] [features=default] \definefontsynonym[SansSlanted] [FreeSans-Italic] [features=default] \definefontsynonym[SansBoldItalic] [FreeSans-BoldItalic][features=default] \definefontsynonym[SansBoldSlanted][FreeSans-BoldItalic][features=default] \stoptypescript \starttypescript[mono][freemono] \definefontsynonym[Mono] [FreeMono-Regular] [features=default] \definefontsynonym[MonoBold] [FreeMono-Bold] [features=default] \definefontsynonym[MonoItalic] [FreeMono-Italic] [features=default] \definefontsynonym[MonoSlanted] [FreeMono-Italic] [features=default] \definefontsynonym[MonoBoldItalic] [FreeMono-BoldItalic][features=default] \definefontsynonym[MonoBoldSlanted][FreeMono-BoldItalic][features=default] \stoptypescript \starttypescript[serif][freeserif] \definefontsynonym[FreeSerif-Regular] [name:FreeSerif] [features=default] \definefontsynonym[FreeSerif-Bold] [name:FreeSerifBold] [features=default] \definefontsynonym[FreeSerif-Italic] [name:FreeSerifItalic] [features=default] \definefontsynonym[FreeSerif-BoldItalic][name:FreeSerifBoldItalic][features=default] \stoptypescript \starttypescript[sans][freesans] \definefontsynonym[FreeSans-Regular] [name:FreeSans] [features=default] \definefontsynonym[FreeSans-Bold] [name:FreeSansBold] [features=default] \definefontsynonym[FreeSans-Italic] [name:FreeSansOblique] [features=default] \definefontsynonym[FreeSans-BoldItalic][name:FreeSansBoldOblique][features=default] \stoptypescript \starttypescript[mono][freemono] \definefontsynonym[FreeMono-Regular] [name:FreeMono] [features=default] \definefontsynonym[FreeMono-Bold] [name:FreeMonoBold] [features=default] \definefontsynonym[FreeMono-Italic] [name:FreeMonoOblique] [features=default] \definefontsynonym[FreeMono-BoldItalic][name:FreeMonoBoldOblique][features=default] \stoptypescript \starttypescript[freefont] \definetypeface[\typescriptone][rm][serif][freeserif][default] \definetypeface[\typescriptone][ss][sans] [freesans][default] \definetypeface[\typescriptone][tt][mono] [freemono][default] \stoptypescript \endinput --Multipart=_Fri__29_Feb_2008_19_00_48_+0100_TrpwAPKZg6Q8_.Y_ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --Multipart=_Fri__29_Feb_2008_19_00_48_+0100_TrpwAPKZg6Q8_.Y_--