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