Bug 28803

Summary: FTPickMapping fails with BadFontFormat on ZapfDingbats.ttf
Product: xorg Reporter: Jeremy Huddleston Sequoia <jeremyhu>
Component: Lib/XfontAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED INVALID QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: git   
Hardware: All   
OS: All   
URL: http://xquartz.macosforge.org/trac/ticket/325
Whiteboard: 2011BRB_Reviewed
i915 platform: i915 features:

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.