Ticket #325 (assigned usability)
Bad-value failure on OpenFont request for some Snow Leopard TTF fonts
| Reported by: | tgl@… | Owned by: | jeremyhu@… |
|---|---|---|---|
| Priority: | Important | Milestone: | 2.6.0 |
| Component: | xserver | Version: | 2.4.0 (xserver-1.5) |
| Keywords: | Cc: |
Description
Attached is an xscope trace of the following session:
$ /opt/tcl8.5/bin/wish
% font actual [list zapfdingbats 12 roman normal] -family
run from an HPUX client machine. It fails at the very end with a "bad value" response to an OpenFont request. As far as I can see the requested font number 0xC00005 is within the resource range specified by the server in the startup response, so it should not fail.
I get this type of behavior in both the X server released with Snow Leopard, and xquartz 2.4.1_alpha3. I have never seen it in previous Apple X servers, and the client-side software didn't change when I went to Snow Leopard. Not all OpenFont requests fail --- in fact, it seems that only a few specific fonts may be affected, but I'm not certain about the triggering conditions. The example given here is 100% reproducible though.
I suspect that the fact that HPPA is a big-endian architecture might have something to do with it, since I'm unable to reproduce the problem when running tcl from a little-endian client. Maybe something is forgetting a byte-swap operation somewhere?

