From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38706 Path: news.gmane.org!not-for-mail From: Roland Newsgroups: gmane.comp.tex.context Subject: Using Postscript Type 1 fonts in ConTeXt/XeTeX? Date: Sun, 20 Jan 2008 11:21:32 +0100 Message-ID: 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 1200824578 10433 80.91.229.12 (20 Jan 2008 10:22:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2008 10:22:58 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 20 11:23:15 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 1JGXKb-0005SG-E4 for gctc-ntg-context-518@m.gmane.org; Sun, 20 Jan 2008 11:23:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A628B1FB95; Sun, 20 Jan 2008 11:22:47 +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 06521-01; Sun, 20 Jan 2008 11:22:11 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B50D81FBAC; Sun, 20 Jan 2008 11:22:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1B6D71FB98 for ; Sun, 20 Jan 2008 11:22:09 +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 25192-06-2 for ; Sun, 20 Jan 2008 11:21:36 +0100 (CET) Original-Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by ronja.ntg.nl (Postfix) with ESMTP id 979FD1FB8F for ; Sun, 20 Jan 2008 11:21:35 +0100 (CET) Original-Received: by py-out-1112.google.com with SMTP id p76so2099632pyb.5 for ; Sun, 20 Jan 2008 02:21:34 -0800 (PST) Original-Received: by 10.65.154.2 with SMTP id g2mr11876098qbo.55.1200824492992; Sun, 20 Jan 2008 02:21:32 -0800 (PST) Original-Received: by 10.64.49.15 with HTTP; Sun, 20 Jan 2008 02:21:32 -0800 (PST) Content-Disposition: inline X-Google-Sender-Auth: 7af5fc7690e2edc0 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:38706 Archived-At: Hi, I am fairly new to both ConTeXt (and XeTeX) but I've already been very impressed with the active user community and the amount of documentation available, as well as with the sheer userfriendliness of ConTeXt when compared to LaTeX. Now I'm trying to get into fonts, but activating a Postscript Type 1 font seems to go beyond my abilities and the wiki documentation on http://wiki.contextgarden.net/Fonts_in_XeTeX . Perhaps anybody can help? I have a Postscript type 1 font family called Eco, consisting of Eco101Roman, Eco102Italic, Eco301Bold and some others. FontBook shows these names identically as PostScript name, Full Name and Family name (which means Fontbook is unaware that they are a family, but this is not the topic here). The fonts can be used with any Mac application and they also work fine in a LaTeX-fontspec-XeTeX combination: the following minimal LaTeX file produces the text as desired in Eco101Roman. 1 %!TEX TS-program = xelatex 2 %!TEX encoding = UTF-8 Unicode 3 \documentclass[12pt]{article} 4 \usepackage{fontspec} 5 \defaultfontfeatures{Scale=MatchLowercase} 6 \setromanfont[Mapping=tex-text]{Eco101Roman} 7 \setsansfont[Mapping=tex-text]{Skia} 8 \setmonofont{Courier} 9 \author{Roland} 10 \title{XeTeX test} 11 12 \begin{document} 13 \maketitle 14 \section{This is a new section} 15 Let's try to \emph{write} this. 16 17 Lorem ipsum dolor sit amet, consectetur adipisicing elit, 40 \end{document} On ConTeXt however, I cannot get the font to be recognised. Please see my testfile below, in which I tried to (a) compile it with a self-installed TrueType font (which works) (b) tried to select Eco101Roman directly (which produces a ** ERROR ** Invalid font) and (c) tried to select the font through a typescript (which produces a "Metric (TFM) file or installed font not found.") What am I doing wrong? How can I get these fonts to work (and make ConTeXt treat them as a proper family too?) Looking forward to your ideas! Roland 1 % ====================== 2 % = Various font tests = 3 % ====================== 4 5 %% TRUETYPE -- works fine 6 %\definetypeface[myfont][rm][Xserif][LegacySerifLT-Book] 7 8 %% TYPE1 without typescript 9 %\definetypeface[myfont][rm][Xserif][Eco101Roman] 10 %% Produces 11 %% 12 %% [1 13 %% 14 %% ** ERROR ** Invalid font: -1 (1) 15 %% 16 %% 17 %% 18 %% Output file removed. 19 20 %% TYPE1 with typescript 21 \starttypescript[serif][eco][uc] 22 \definefontsynonym [Eco-Roman]['Eco101Roman:mapping=tex-text'][encoding=uc] 23 \definefontsynonym [Eco-Italic] ['Eco102Italic:mapping=tex-text'][encoding=uc] 24 \definefontsynonym [Eco-Bold] ['Eco301Bold:mapping=tex-text'][encoding=uc] 25 \stoptypescript 26 \usetypescript[eco] 27 \definetypeface[myfont][rm][Xserif][Eco-Roman] 28 %% produces 29 %% ./hello.tex:35: Font \*myfont12ptrmtfrm*:=Eco-Roman:mapping=tex-text at 12.0pt 30 %% not loadable: Metric (TFM) file or installed font not found. 31 %% 32 33 34 \starttext 35 \switchtobodyfont[myfont,18pt] 36 \section{Testing font} 37 This is plain text \bf{This is bold text} \it{This is bold italic text} 38 39 \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________