ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: Kerning ignored on some macOS TTC fonts
Date: Tue, 4 Feb 2025 07:27:58 +0100	[thread overview]
Message-ID: <b691b7fe-87be-4df2-a210-df60a63b19d5@fiee.net> (raw)
In-Reply-To: <trinity-13f250ed-1156-415f-93da-ea525d48c9fd-1738617151924@trinity-msg-rest-webde-webde-live-8d9fbf8c-m7fjh>

Am 03.02.25 um 22:12 schrieb Paul Schalck via ntg-context:
> Hello,
> 
> I'm trying to set up typescripts for a few classic TTC font collections shipped with macOS (see script below).
> 
> No problems with:
> 
> /System/Library/Fonts/Avenir Next Condensed.ttc
> /System/Library/Fonts/Avenir Next.ttc
> /System/Library/Fonts/Avenir.ttc
> /System/Library/Fonts/Supplemental/Charter.ttc
> /System/Library/Fonts/Supplemental/Futura.ttc
> /System/Library/Fonts/Supplemental/Seravek.ttc
> 
> However, the kerning and the standard ligatures aren't picked up by ConTeXt on those:
> 
> /System/Library/Fonts/Helvetica.ttc
> /System/Library/Fonts/HelveticaNeue.ttc
> /System/Library/Fonts/Optima.ttc
> /System/Library/Fonts/Palatino.ttc
> /System/Library/Fonts/Times.ttc
> /System/Library/Fonts/Supplemental/Baskerville.ttc
> /System/Library/Fonts/Supplemental/Bodoni 72.ttc
> /System/Library/Fonts/Supplemental/Didot.ttc
> /System/Library/Fonts/Supplemental/GillSans.ttc
> /System/Library/Fonts/Supplemental/Hoefler Text.ttc
> 
> As an example, running
> 
> mtxrun --script fonts --list --info --file Optima.ttc
> 
> gives:
> 
> mtx-fonts       |
> mtx-fonts       | mapping   : 1
> mtx-fonts       | fontname  : optimaextrablack
> mtx-fonts       | fullname  : optimaextrablack
> mtx-fonts       | filename  : /System/Library/Fonts/Optima.ttc
> mtx-fonts       | family    : optima
> mtx-fonts       | weight    : black
> mtx-fonts       | style     : normal
> mtx-fonts       | width     : normal
> mtx-fonts       | variant   : normal
> mtx-fonts       | subfont   : 5
> fonts           | otf loading | loading '/System/Library/Fonts/Optima.ttc', hash 'optima'
> otf reader      | ignoring empty kern table of feature 'kern'
> fonts           | otf loading | loading done
> fonts           | otf loading | saving '/System/Library/Fonts/Optima.ttc' in cache
> system          | lua | compiling '/Users/benutzer/.local/share/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/optima.tma' into '/Users/benutzer/.local/share/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/optima.tmd'
> system          | lua | dumping '/Users/benutzer/.local/share/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/optima.tma' into '/Users/benutzer/.local/share/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/optima.tmd' stripped
> fonts           | otf loading | loading, optimizing, packing and caching time 0.004
> mtx-fonts       |
> 
> It seems that ConTeXt cannot find the kern values ("ignoring empty kern table of feature 'kern'"). What I usually do when I encounter kerning issues with older TrueType fonts is to generate new ones with FontForge. It never fails. I wonder though if there is a clean, native ConTeXt solution to this.
> 
> Testing environment:
> - LuaMetaTeX 2.11.06 20241230 + ConTeXt LMTX 2024.12.30 (the current version)
> - macOS Sequoia 15.3. I'm assuming that most TTC files on older Mac systems are identical, given their internal version date.

Why do you think these fonts have kern tables at all?
I looked at Optima.ttc with Fontforge and can’t find one.

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2025-02-04  6:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-03 21:12 [NTG-context] " Paul Schalck via ntg-context
2025-02-04  6:27 ` Henning Hraban Ramm [this message]
2025-02-04  9:36 [NTG-context] " Paul Schalck via ntg-context
2025-02-04 10:57 ` Henning Hraban Ramm
2025-02-05  8:59 ` Hans Hagen via ntg-context
2025-02-05 11:49   ` Paul Schalck via ntg-context

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=b691b7fe-87be-4df2-a210-df60a63b19d5@fiee.net \
    --to=texml@fiee.net \
    --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).