#13045 closed defect (fixed)
freetype needs --with-old-mac-fonts to properly handle resource-fork-only fonts
Reported by: | blb@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | nox@…, ryandesign (Ryan Carsten Schmidt) | |
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 (1)
Change History (9)
Changed 17 years ago by blb@…
Attachment: | freetype.diff added |
---|
comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | blb@… ryandesign@… added |
---|
comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
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 17 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 17 years ago by nox@…
Cc: | nox@… added |
---|
comment:5 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Added in r31552. Thanks.
comment:6 follow-up: 7 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Priority: | High → 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 Changed 16 years ago by blb@…
Cc: | blb@… removed |
---|---|
Port: | freetype added |
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...
Portfile diff