ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Error with TrueType flavor OpenType fonts with .otf	extension
Date: Tue, 03 Feb 2009 23:34:44 +0100	[thread overview]
Message-ID: <4988C684.1060701@elvenkind.com> (raw)
In-Reply-To: <4988C30A.3000007@wxs.nl>

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
___________________________________________________________________________________


  reply	other threads:[~2009-02-03 22:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-03 20:28 Khaled Hosny
2009-02-03 21:24 ` Arthur Reutenauer
2009-02-03 22:19 ` Hans Hagen
2009-02-03 22:34   ` Taco Hoekwater [this message]
2009-02-03 23:21     ` Hans Hagen
2009-02-03 22:35   ` Wolfgang Schuster
2009-02-03 22:38   ` Khaled Hosny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4988C684.1060701@elvenkind.com \
    --to=taco@elvenkind.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).