From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47192 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Error with TrueType flavor OpenType fonts with .otf extension Date: Tue, 03 Feb 2009 23:34:44 +0100 Message-ID: <4988C684.1060701@elvenkind.com> References: <20090203202839.GB4038@khaled-laptop> <4988C30A.3000007@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"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233700621 31913 80.91.229.12 (3 Feb 2009 22:37:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2009 22:37:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 03 23:38:15 2009 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 1LUTu3-0007qp-P0 for gctc-ntg-context-518@m.gmane.org; Tue, 03 Feb 2009 23:37:59 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5C00C1FC51; Tue, 3 Feb 2009 23:36:37 +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 32540-01-2; Tue, 3 Feb 2009 23:34:55 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C32E01FC77; Tue, 3 Feb 2009 23:34:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0343A1FC51 for ; Tue, 3 Feb 2009 23:34:52 +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 32540-01 for ; Tue, 3 Feb 2009 23:33:51 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by ronja.ntg.nl (Postfix) with ESMTP id AD8C01FC83 for ; Tue, 3 Feb 2009 23:33:51 +0100 (CET) Original-Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by filter3-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n13MXoFL030549 for ; Tue, 3 Feb 2009 23:33:50 +0100 Original-Received: from [192.168.178.26] (boo.demon.nl [82.161.175.147]) (authenticated bits=0) by smtp-vbr4.xs4all.nl (8.13.8/8.13.8) with ESMTP id n13MXnIk047827 for ; Tue, 3 Feb 2009 23:33:49 +0100 (CET) (envelope-from taco@elvenkind.com) User-Agent: Thunderbird 2.0.0.19 (X11/20090114) In-Reply-To: <4988C30A.3000007@wxs.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; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 174621042 - 51e8069c0e92 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:47192 Archived-At: Hans Hagen wrote: > Khaled Hosny wrote: >> I came across an OpenType font with TrueType outline that had an .otf >> extension, attempting to use it gave me this error: >> >> !luaTeX error (file /home/khaled/.fonts/UthmanTN1_Ver06.otf): can't find >> table `CFF ' >> ==> Fatal error occurred, no output PDF file produced! >> >> Reading OpenType specification, I see that it allows this: >> >> * In all cases, fonts with only CFF data (no TrueType outlines) >> always have an .OTF extension. >> * Fonts containing TrueType outlines may have either .OTF or .TTF, >> depending on the desire for backward compatibility on older >> systems or with previous versions of the font. TrueType Collection >> fonts should have a .TTC extension whether or not the fonts have >> OpenType layout tables present. >> >> I'm not sure if this is a LuaTeX of ConTeXt issue, but my guess is that >> a ConTeXt issue, thus reported here. > > it's not a context message; does renaming the font work ok? This happens because mkiv marks the font as opentype where it should be treated as truetype by the subsetting backend (otherwise it gets confused). That means it really is somewhat of a backend issue, but the easy fix is to either set tfmtable.format="truetype" in mkiv or to rename the font. I'll add a tracker item to do this type discovery based on the actual file magic, but it will have a low priority. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________