Bug 28803 - FTPickMapping fails with BadFontFormat on ZapfDingbats.ttf
Summary: FTPickMapping fails with BadFontFormat on ZapfDingbats.ttf
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xfont (show other bugs)
Version: git
Hardware: All All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL: http://xquartz.macosforge.org/trac/ti...
Whiteboard: 2011BRB_Reviewed
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-28 15:52 UTC by Jeremy Huddleston Sequoia
Modified: 2018-06-12 19:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Jeremy Huddleston Sequoia 2010-06-28 15:52:28 UTC
Put ZapfDingbats.ttf into ~/.fonts, then:

cd ~/.fonts
mkfontscale
mkfontdir
xset fp+ ${HOME}/.fonts
xlsfonts | grep dingbats

You should see:
-misc-zapf dingbats-medium-r-normal--0-0-0-0-p-0-iso10646-1

Now try running:
xfd -fn "-misc-zapf dingbats-medium-r-normal--0-0-0-0-p-0-iso10646-1"

You'll get:
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  45 (X_OpenFont)
  Value in failed request:  0x80000b
  Serial number of failed request:  21
  Current serial number in output stream:  22

Please contact me offline for ZapfDingbats.ttf since I think there are licensing issues preventing me from adding it as an attachment
Comment 1 Jeremy Huddleston Sequoia 2010-09-29 09:12:26 UTC
The (*scalable->renderer->OpenScalable) call is returning BadFontFormat.

Enabling DEBUG_TRUETYPE in ft.h printed out:
Open Scalable /System/Library/Fonts/ZapfDingbats.ttf, XLFD=-misc-zapf dingbats-medium-r-normal--0-0-0-0-p-0-iso10646-1
Closing face: /System/Library/Fonts/ZapfDingbats.ttf
Error during load: 88

So it's happening inside FreeTypeLoadXFont which in turn got it from FreeTypeLoadFont which in turn got it from FTPickMapping.

gdb is being a PITA and not finding debug symbols, so I can't step through, but it looks like something in FTPickMapping doesn't agree with the font.
Comment 2 Adam Jackson 2018-06-12 19:06:45 UTC
Mass closure: This bug has been untouched for more than six years, and is not
obviously still valid. Please reopen this bug or file a new report if you continue to experience issues with current releases.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.