On Monday 21 February 2005 07:50, Jonathan Kaye wrote: > I'm now running a new system of Debian sarge with kernel 2.6.8-2-386. > I'm happy to say that everything works thanks to Piotr's work. So thanks > Piotr. What's driving me crazy is trying to understand where IVIB looks > for it's fonts. For example I can give the fontname "Times" and IVIB is > happy. If I put in "Times Roman" it isn't happy. IVIB seems to find my > Times Phonetic font (with that name given as the font attribute) but > returns the error (at runtime) > ================================================== > 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: 0x3600022 > Serial number of failed request: 97 > Current serial number in output stream: 98 > ===================================== > Can anyone tell me how IVIB deals with fonts? Where it looks for them, etc. > Thanks in advance. > Jonathan
Hello Jonathan Ivib checks whether a value for a particular attribute is valid by calling the function WAttrib with a hidden test window and the given attrib=value pair as parameters, and seeing if it fails or not. If it does fail, then it pops up a dialog saying so. So, it seems WAttrib(win, "font=times") succeeds, but WAttrib(win, "font=times roman") fails for some reason (this is the case on my system too). The function which does this check is called util_check_attribs and is in the file utils.icn in the ivib directory. I hope this helps, Robert. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Unicon-group mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/unicon-group
