home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14153 < prev    next >
Encoding:
Text File  |  1992-08-18  |  2.0 KB  |  44 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!destroyer!gumby!kzoo!k044477
  3. From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
  4. Subject: Re: Weird Quickdraw Bug w/ Geneva
  5. Message-ID: <1992Aug18.165219.3514@hobbes.kzoo.edu>
  6. Organization: Kalamazoo College
  7. References: <cshotton-180892101517@oac2.hsc.uth.tmc.edu>
  8. Date: Tue, 18 Aug 1992 16:52:19 GMT
  9. Lines: 33
  10.  
  11. cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton) writes:
  12. >I've run into a VERY odd "feature" with a relatively simple piece of code.
  13. >
  14. >When 9 pt. Geneva is used, the text comes out as a
  15. >VERY pale yellow (instead of the expected black). If any font besides
  16. >Geneva is used, or any any size of Geneva BESIDES 9 pt, there is no
  17. >problem.
  18. >
  19. >This problem occurs on a Quadra 700 and IIci, both running Sys 7.01. The
  20. >color aliasing happens in both 4 and 8 bit video modes on both machines.
  21. >There are other windows in the program with custom palettes, but this
  22. >window is left alone. None of the other windows has this problem.
  23.  
  24. Sounds like you're messing with the screen's color table, and not
  25. letting the system know that you're doing it.
  26.  
  27. Theoretically, there's no way you can do this :-) if you're using the
  28. Palette Manager exclusively, and if you're not directly editing the data
  29. in the system's data structures.  If you grab a GDevice's color table
  30. and shove your own data into it without calling CTabChanged() or
  31. changing its ctSeed, you'll experience effects exactly like those you
  32. explain.
  33.  
  34. It happens with Geneva 9 and not Geneva 10, because the system has
  35. an 8-bit-deep copy of Geneva 9 in ROM (along with Chicago 12, Geneva 12,
  36. and Monaco 9).  You'll actually see the wrong-color effect on _any_
  37. font whose image the Font Manager created before you changed the colors.
  38. Those four fonts, since they're in ROM, will never be purged, and will
  39. generally be among the first to start looking funny.
  40. -- 
  41.  Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
  42.  He let the contents of the bottle do the thinking
  43.  Can't shake the devil's hand and say you're only kidding            - TMBG
  44.