New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13045 (closed defect: fixed)

Opened 6 years ago

Last modified 4 years ago

freetype needs --with-old-mac-fonts to properly handle resource-fork-only fonts

Reported by: blb@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: nox@…, ryandesign@…
Port: freetype

Description

Several fonts in /Library/Fonts are resource-fork-only (eg Arial which has a data-fork size of 0) and will not be seen by freetype (and hence fontconfig, where I first saw this problem) without the --with-old-mac-fonts switch to configure. This can be seen by running /opt/local/bin/fc-list (part of fontconfig) and looking for the basic Arial font. Without the switch, it only sees the Arial Hebrew (which are data-fork fonts), and with the switch, several more Arial fonts appear.

Will attach the simple Portfile diff.

Attachments

freetype.diff (470 bytes) - added by blb@… 6 years ago.
Portfile diff

Change History

Changed 6 years ago by blb@…

Portfile diff

comment:1 Changed 6 years ago by ryandesign@…

  • Cc blb@…, ryandesign@… added

comment:2 Changed 6 years ago by ryandesign@…

It seems like a good change to make, but both before and after this patch, fc-list only shows me the Arial Hebrew fonts, though I have other Arial fonts in /Library/Fonts. Any ideas what's wrong?

comment:3 Changed 6 years ago by blb@…

You probably need to clear the fontconfig cache each time, I think I remember doing that; it's in /opt/local/var/cache/fontconfig.

comment:4 Changed 6 years ago by nox@…

  • Cc nox@… added

comment:5 Changed 5 years ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to fixed

Added in r31552. Thanks.

comment:6 follow-up: ↓ 7 Changed 5 years ago by ryandesign@…

  • Priority changed from High to Normal

This option causes problems on Leopard (and presumably later) when freetype is accessed from php working as an Apache module; see #15909. Fortunately it seems Apple has converted most of its old resource fork fonts to data fork fonts in Leopard. So hopefully it's ok that this option is, as of r42513, now only used on Tiger and earlier.

comment:7 in reply to: ↑ 6 Changed 5 years ago by blb@…

  • Cc blb@… removed
  • Port set to freetype

Replying to ryandesign@…:

This option causes problems on Leopard (and presumably later) when freetype is accessed from php working as an Apache module; see #15909. Fortunately it seems Apple has converted most of its old resource fork fonts to data fork fonts in Leopard. So hopefully it's ok that this option is, as of r42513, now only used on Tiger and earlier.

Considering my suggestion in 15909, hopefully that answers my opinion on losing with-old-mac-fonts on 10.5...

comment:8 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.