home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 21941 < prev    next >
Encoding:
Text File  |  1993-01-22  |  1.8 KB  |  51 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!hamblin.math.byu.edu!hellgate.utah.edu!peruvian.cs.utah.edu!mshields
  3. From: mshields%peruvian.cs.utah.edu@cs.utah.edu (Michael S Shields)
  4. Subject: Re: Modifying width of PopUp menus in System 7.1
  5. Date: 22 Jan 93 01:18:47 MST
  6. Message-ID: <1993Jan22.011847.21724@hellgate.utah.edu>
  7. Organization: University of Utah Computer Science
  8. References: <1jfqevINN244@flop.ENGR.ORST.EDU> <absurd-190193022736@seuss.apple.com>
  9. Lines: 40
  10.  
  11. In article <absurd-190193022736@seuss.apple.com> absurd@apple.apple.com (Tim Dierks, software saboteur) writes:
  12. >
  13. >Here's some code to do what you want.  I'm right in the middle of working
  14. >on this,
  15. >so I can't say it's 100% correct, but I'm pretty sure it's close.  It will
  16. >give
  17. >you all the essential concepts, anyway.
  18. >
  19. >Tim Dierks
  20. >MacDTS, but I speak for myself
  21. >
  22.  
  23. [some code deleted]
  24.  
  25. >    // First, we'll clean up after buggy software.  A number of commercial
  26. >products
  27. >    // (word processors are most common) screw up the window manager port;
  28. >they leave the
  29. >    // txSize field set to 12.  It and the txFont field should always be
  30. >left set to 0;
  31. >    // this makes them the system font and size.  So first thing we do is
  32. >clean up
  33. >    // after these miscreants.
  34. >    
  35. >    GetWMgrPort(&wMgrPort);
  36. >    SetPort(wMgrPort);
  37. >    TextFont(0);
  38. >    TextSize(0);
  39. >    
  40. [more code deleted]
  41.  
  42. This section I have a question about. I found out the other day that the system
  43. software for international use(ie. Kanji) doesn't use 0 as the system font.
  44. If I set the SysFontFam global to 0 the menu and titlebar text showed up in
  45. Chicago not Osaka(is this the correct name?). Now does TextFont and TextFace
  46. have the intelligence to use the correct font or does it blindly use Chicago?
  47. This was using Kanji 7.1 on a IIsi.
  48.  
  49. Mike Shields
  50. mshields@peruvian.cs.utah.edu
  51.