Follow-up Comment #3, bug #67702 (group groff): Many thanks for your testing help.
I was not able to reproduce the ioctl error. However, there are a couple of
improvements to the software which may help. The major factor which may have
caused a problem is that this font has a platform-id=1 and format=0 cmap
table. The Opentype documentation says:-
Macintosh platform (platform ID = 1)
Older Macintosh versions required fonts to have a 'cmap' subtable for platform
ID 1. For current Apple platforms, use of platform ID 1 is discouraged. See
the 'name' table chapter for details regarding encoding IDs defined for the
Macintosh platform.
Using the cmap table for platform-id=3 (unicode) yielded better results. I now
only reference format zero if there are no other formats in the font. I have
attached a new .tgz and latest ttffontinstall.pl, plus the catalogue pdf
produced when I ran this command:-
derij@pip build (master)]$ ./ttffontinstall.pl -m font/devpdf/map/text.map
~/Downloads/apple-garamond-cdnfonts/AppleGaramond*.ttf
./ttffontinstall.pl: Notice: Ensure '/home/derij/.groff/fonts' is included in
GROFF_FONT_PATH (or include -F in all groff commands)
There are multiple naming strategies for the fonts. Please choose:-
1. AppleGaramond(R,B,BI,I) + AppleGaramondLight(R,I)
2. AppleGaramond(R,B,BI,I) + AppleGaramondLight(R,I)
Strategy? [Default 1] :
Running fontforge...
Done.
Running makemap...
Done.
Running afmtodit...
Done.
Running catalogueing...
Duplicate 00A0 => 160
Duplicate 002D => 173
Done.
Running fontforge...
Done.
Running makemap...
Done.
Running afmtodit...
Done.
Running fontforge...
Done.
Running makemap...
Done.
Running afmtodit...
Done.
Running fontforge...
Done.
Running makemap...
Done.
Running afmtodit...
Done.
Change default family 'CN' (ComicNeue-Regular) to 'AppleGaramond' (Apple
Garamond)? [N/y/(o)ther] :
Leaving default family as 'CN' (ComicNeue-Regular)
Running fontforge...
Done.
Running makemap...
Done.
Running afmtodit...
Done.
Running catalogueing...
Duplicate 0020 => 160
Duplicate 002D => 173
Done.
Running fontforge...
Done.
Running makemap...
Done.
Running afmtodit...
Done.
It may be best if you wipe the ~/.groff/font/devpdf directory for good measure
before testing this new version.
If you still have the ioctl error after installing this version please can you
send me these files (from ~/.groff/font/devpdf):-
job.log
DESC
download
catalogues/AppleGaramond[R].pdf
AppleGaramond[R]
AppleGaramond[R].map
The "[R]" will be present if you import the fonts as a complete family (as in
the example above), or missing if you just install a single font.
(file #57812, file #57813, file #57814)
_______________________________________________________
Additional Item Attachment:
Name: ttffontinstall.tgz Size: 110KiB
<https://file.savannah.gnu.org/file/ttffontinstall.tgz?file_id=57812>
Name: AppleGaramondR.pdf Size: 97KiB
<https://file.savannah.gnu.org/file/AppleGaramondR.pdf?file_id=57813>
Name: ttffontinstall.pl Size: 24KiB
<https://file.savannah.gnu.org/file/ttffontinstall.pl?file_id=57814>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-ed84fe80348165e3d4f98c86300132395c6fd7e1.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67702>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
