You are not logged in.

#1 2013-07-17 22:24:46

Marcel-
Member
From: Utrecht, NL
Registered: 2006-12-03
Posts: 266

[SOLVED] Fontforge crashes because it can't find Linotype Times Medium

The issue I have looks much like this bug and this forum post. After starting Fontforge, it crashes with the following messages:

$ fontforge 
Copyright (c) 2000-2012 by George Williams.
 Executable based on sources from 14:57 GMT 31-Jul-2012-ML-TtfDb-D.
 Library based on sources from 14:57 GMT 31-Jul-2012.
Failed to create a fontset for the input method
-sony-fixed-medium-r-normal--16-150-75-75-c-80-iso8859-1,-linotype-helvetica-medium-r-normal--16-0-0-0-p-0-iso8859-2,-linotype-helvetica-medium-r-normal--16-0-0-0-p-0-iso8859-3,-linotype-helvetica-medium-r-normal--16-0-0-0-p-0-iso8859-4,-linotype-helvetica-medium-r-normal--16-0-0-0-p-0-iso8859-5,-misc-amiri-medium-r-normal--16-0-0-0-p-0-iso8859-6.16,-linotype-helvetica-medium-r-normal--16-0-0-0-p-0-suneu-greek,-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-8,-linotype-helvetica-medium-r-normal--16-0-0-0-p-0-iso8859-9,-linotype-helvetica-medium-r-normal--16-0-0-0-p-0-iso8859-10,-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-11,-linotype-helvetica-medium-r-normal--16-0-0-0-p-0-iso8859-13,-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-14,-linotype-helvetica-medium-r-normal--16-0-0-0-p-0-iso8859-15,-linotype-helvetica-medium-r-normal--16-0-0-0-p-0-koi8-uni,-sony-fixed-medium-r-normal--16-150-75-75-c-80-jisx0201.1976-0,-jis-fixed-medium-r-normal--16-150-75-75-c-160-jisx0208.1983-0,-microsoft-meiryo-medium-r-normal--16-0-0-0-p-0-jisx0212.1990-0,-daewoo-gothic-medium-r-normal--16-120-100-100-c-160-ksc5601.1987-0,-isas-fangsong ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0,-linotype-helvetica-medium-r-normal--16-0-0-0-p-0-iso10646-1
Error attempting to load font:
  -linotype-times-medium-r-normal--16-0-0-0-p-0-iso10646-1
The X Server clained the font existed, but when I asked for it,
I got this error instead:

X Error of failed request: BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  45.0 (X_OpenFont)
  Serial number of failed request:  839
  Failed resource ID:  e000b1
Aborted (core dumped)

I followed the bug report and did

$ egrep -r --include='fonts.dir' 'linotype-times-medium-r.*iso10646' /usr/share | cut -d' ' -f1
/usr/share/fonts/TTF/fonts.dir:TimesRoman.ttf

Contrary to the bug report, /usr/share/fonts/TTF/TimesRoman.ttf does exist.

I then did

# cd /usr/share/fonts/TTF/
# mv fonts.scale{,.orig}
# mv fonts.dir{,.orig}
# mkfontscale
# mkfontdir

and restarted X. Alas, still the same error message.

TimesRoman.ttf is part of ttf-mac 10.8.1-5. I removed that package and did

# xset fp rehash

and now Fontforge starts correctly.

However, when I try to reinstall ttf-mac Fontforge crashes again. Is it possible to run Fontforge with ttf-mac installed?

Last edited by Marcel- (2013-07-31 09:19:14)

Offline

#2 2013-07-17 23:26:12

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Fontforge crashes because it can't find Linotype Times Medium

Those look like different errors to me. The closest I can find searching startpage.com is http://ubuntuforums.org/showthread.php? … 8a9fb12689 but there is no solution there unless the subject of the thread is supposed to be a hint.

Which package owns TimesRoman.ttf? I ask because it is not at all clear what that might have to do with the ttf-mac package, looking at the pkgbuild. And just know Macs, I'd expect Times.dfont to provide Times rather than TimesRoman.

Can you post the list of files provided by the package? (pacman -Ql ttf-mac)

What version of OS X do you have?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2013-07-19 20:57:27

Marcel-
Member
From: Utrecht, NL
Registered: 2006-12-03
Posts: 266

Re: [SOLVED] Fontforge crashes because it can't find Linotype Times Medium

cfr wrote:

Which package owns TimesRoman.ttf? I ask because it is not at all clear what that might have to do with the ttf-mac package, looking at the pkgbuild. And just know Macs, I'd expect Times.dfont to provide Times rather than TimesRoman.

Can you post the list of files provided by the package? (pacman -Ql ttf-mac)

Times.dfont is split by fondu to TimesBold.ttf, TimesBoldItalic.ttf, TimesItalic.ttf and TimesRoman.ttf (and several .bdf-fonts).

$ pacman -Ql ttf-mac
ttf-mac /usr/
ttf-mac /usr/share/
ttf-mac /usr/share/fonts/
ttf-mac /usr/share/fonts/TTF/
ttf-mac /usr/share/fonts/TTF/Apple Braille Outline 6 Dot.ttf
ttf-mac /usr/share/fonts/TTF/Apple Braille Outline 8 Dot.ttf
ttf-mac /usr/share/fonts/TTF/Apple Braille Pinpoint 6 Dot.ttf
ttf-mac /usr/share/fonts/TTF/Apple Braille Pinpoint 8 Dot.ttf
ttf-mac /usr/share/fonts/TTF/Apple Braille.ttf
ttf-mac /usr/share/fonts/TTF/Courier.ttf
ttf-mac /usr/share/fonts/TTF/CourierBold.ttf
ttf-mac /usr/share/fonts/TTF/CourierBoldOblique.ttf
ttf-mac /usr/share/fonts/TTF/CourierOblique.ttf
ttf-mac /usr/share/fonts/TTF/Geeza Pro Bold.ttf
ttf-mac /usr/share/fonts/TTF/Geeza Pro.ttf
ttf-mac /usr/share/fonts/TTF/Geneva.ttf
ttf-mac /usr/share/fonts/TTF/Helvetica.ttf
ttf-mac /usr/share/fonts/TTF/HelveticaBold.ttf
ttf-mac /usr/share/fonts/TTF/HelveticaBoldOblique.ttf
ttf-mac /usr/share/fonts/TTF/HelveticaLight.ttf
ttf-mac /usr/share/fonts/TTF/HelveticaLightOblique.ttf
ttf-mac /usr/share/fonts/TTF/HelveticaNeue.ttf
ttf-mac /usr/share/fonts/TTF/HelveticaNeueBold.ttf
ttf-mac /usr/share/fonts/TTF/HelveticaNeueBoldItalic.ttf
ttf-mac /usr/share/fonts/TTF/HelveticaNeueCondensedBlack.ttf
ttf-mac /usr/share/fonts/TTF/HelveticaNeueCondensedBold.ttf
ttf-mac /usr/share/fonts/TTF/HelveticaNeueDeskUI.ttc
ttf-mac /usr/share/fonts/TTF/HelveticaNeueItalic.ttf
ttf-mac /usr/share/fonts/TTF/HelveticaNeueLight.ttf
ttf-mac /usr/share/fonts/TTF/HelveticaNeueLightItalic.ttf
ttf-mac /usr/share/fonts/TTF/HelveticaNeueMedium.ttf
ttf-mac /usr/share/fonts/TTF/HelveticaNeueUltraLight.ttf
ttf-mac /usr/share/fonts/TTF/HelveticaNeueUltraLightItalic.ttf
ttf-mac /usr/share/fonts/TTF/HelveticaOblique.ttf
ttf-mac /usr/share/fonts/TTF/Keyboard.ttf
ttf-mac /usr/share/fonts/TTF/LucidaGrande.ttc
ttf-mac /usr/share/fonts/TTF/MarkerFelt.ttc
ttf-mac /usr/share/fonts/TTF/Menlo.ttc
ttf-mac /usr/share/fonts/TTF/Monaco.ttf
ttf-mac /usr/share/fonts/TTF/Symbol.ttf
ttf-mac /usr/share/fonts/TTF/Thonburi.ttf
ttf-mac /usr/share/fonts/TTF/ThonburiBold.ttf
ttf-mac /usr/share/fonts/TTF/TimesBold.ttf
ttf-mac /usr/share/fonts/TTF/TimesBoldItalic.ttf
ttf-mac /usr/share/fonts/TTF/TimesItalic.ttf
ttf-mac /usr/share/fonts/TTF/TimesRoman.ttf
ttf-mac /usr/share/fonts/TTF/ZapfDingbats.ttf
cfr wrote:

What version of OS X do you have?

I used the fonts targeted to by README (just follow the link at the very bottom), but I just tried it with the files from OS X 10.8.4 and (after regenerating the md5sums) it works perfectly now, no more error messages (though the two versions of Times.dfont don't differ from eachother).

Thanks anyway.

Offline

#4 2013-07-19 22:07:14

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Fontforge crashes because it can't find Linotype Times Medium

Hmmm. Interesting, my Apple Times font yielded the Times family with "Roman" just referring to the weight/shape i.e. Times - Roman, Times - Bold, Times - Italic etc. But this is from OS X 10.4 so doubtless things have changed.

Anyway, glad it works even if you don't know why. I do remember there being a bug to do with some Mac fonts package which had to do with, I think, a particular font it installed. But I can't remember the details - maybe this was it.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB