When running imosflm under Mac OS Monterey, the program gives an X error:

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:  0x60005c
  Serial number of failed request:  1474
  Current serial number in output stream:  1475

This is because of some incompatabiity in fonts between the version of Tcl used 
with imosflm and the Monterey operating system.

To fix this error, edit the file imosflm.tcl in the directory similar to:

/ccp4-7.1/share/ccp4i/imosflm/src

Be sure to edit this file and not the one with the same name in the directory 
above.

In lines 431 to 442 (this is in version 7.4.0, line numbers may differ in 
earlier versions but text will be the same), change all occurences of 
"helvetica" to "-adobe-helvetica". These lines are currently:

font create font_l -family helvetica -size $normal_font_size -weight normal
font create font_b -family helvetica -size $normal_font_size -weight bold
font create font_i -family helvetica -size $small_font_size -weight normal 
-slant italic
font create font_e -family courier -size $normal_font_size -weight normal
font create font_s -family helvetica -size $small_font_size -weight normal
font create font_t -family helvetica -size $tiny_font_size -weight normal
font create font_tb -family helvetica -size $tiny_font_size -weight bold
font create font_g -family symbol -size $normal_font_size -weight normal
font create font_u -family helvetica -size $normal_font_size -weight normal 
-underline 1
font create subtitle_font -family helvetica -size $subtitle_font_size -weight 
bold
font create title_font -family helvetica -size $title_font_size -weight bold
font create huge_font -family helvetica -size $huge_font_size -weight bold

I am indebted to David Aragao for providing this fix.


All current bug fixes are listed on the imosflm web page:

https://www.mrc-lmb.cam.ac.uk/mosflm/imosflm/ver740/introduction.html 
<https://www.mrc-lmb.cam.ac.uk/mosflm/imosflm/ver740/introduction.html>


Andrew Leslie
########################################################################

To unsubscribe from the CCP4BB list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=CCP4BB&A=1

This message was issued to members of www.jiscmail.ac.uk/CCP4BB, a mailing list 
hosted by www.jiscmail.ac.uk, terms & conditions are available at 
https://www.jiscmail.ac.uk/policyandsecurity/

Reply via email to