MacTech Network:   MacForge.net  |  Computer Memory  |  Register Domains  |  Printer Supplies  |  Cables  |  iPod Deals  |  Mac Deals  |  Mac Book Shelf


  MacTech Magazine

The journal of Macintosh technology

 
 
MacSpeech

Magazine In Print
  About MacTech  
  Home Page  
  Subscribe  
  Archives DVD  
  Submit News  
  Submit a Tip!  
  Get a copy of MacTech RISK FREE  
Google
Entire Web
mactech.com
Mac Community
More...
MacTech Central
  by Category  
  by Company  
  by Product  
MacTech News
  MacTech News  
  Previous News  
  MacTech RSS  
Article Archives
  Show Indices  
  by Volume  
  by Author  
  Source Code FTP  
Inside MacTech
  Writer's Kit  
  Editorial Staff  
  Editorial Calendar  
  Back Issues  
  Advertising  
Contact Us
  Customer Service  
  MacTech Store  
  Legal/Disclaimers  
  Webmaster Feedback  

APPLE II Q & A

Apple II Developer Technical Support

QHow can I force text-page-two shadowing on the Apple II GS?

A Most uses for text-page-two shadowing come from older, 8-bit applications that use text page two. On the Apple IIGS, a Monitor ROM routine at $F962 (TEXT2COPY) toggles shadowing of text page two, through hardware on ROM 3 and through software on older machines. (A heartbeat task copies the bank $00 screen to the bank $E1 screen for software shadowing.)

TEXT2COPY is only a toggle--it can't tell you the current state of shadowing. To see if shadowing is currently enabled (the user may have enabled it manually with the Alternate Display Mode desk accessory), try storing a character in the bank $00 text-page-two screen, waiting more than 1/60th of a second and seeing if the character has been copied to bank $E1.

QSome of the toolbox calls I make crash when executed with GSBug active, but behave normally when GSBug isn't present. How come?

A GSBug is intolerant of toolbox calls made in 8-bit mode. Although theApple IIGS Toolbox Reference (pages 1-2) clearly states that all toolbox calls must be made in full native mode, the current tool dispatcher protects you by beginning with a REP #$30 instruction. GSBug does not. Be sure to make all toolbox calls in full native mode.

QIf I try to select a file in an SFPutFile dialog box and the file already exists, clicking Save produces no action if I've entered ProDOS 8 since rebooting. Why?

A The System Software 5.0.2 Resource Manager does not restart correctly on return from ProDOS 8. It doesn't correctly add the system resource file into the search path. When Standard File detects that you're trying to save over an existing file, it calls ErrorWindow to display a dialog box with the warning, "That file already exists," and the choice to replace or cancel. ErrorWindow fails because the system resource file is not open and the AlertWindow template can't be loaded. Standard File treats an error in the ErrorWindow call as if you'd clicked Cancel in the "That file already exists" dialog box. The net effect is that nothing at all happens. This is corrected in System Software 5.0.3.

QWhy do Apple IIGS fonts look tall and skinny, as if they were made out of rubber and stretched too far in one direction? They look OK when I print using the "vertical condensed" option.

A Nearly all the Apple IIGS fonts were originally designed for other systems, usually the Macintosh. Font definitions for the Apple II GS and other systems are nearly identical. Macintosh pixels are square; the width-to-height ratio of a pixel is 1:1. Apple II GS pixels are much taller than they are wide (the ratio for Apple II GS 640 mode is about 5:12). When a font designed for square pixels is displayed on a system with pixels of a different shape, the characters look stretched. This is what happens on the Apple IIGS.

Apple could have changed the font strike for a more pleasing look at Apple IIGS resolutions, but for legal reasons such a change would require renaming the fonts. Times wouldn't be Times anymore, Helvetica wouldn't be Helvetica, and so on. The fonts would look the same, but the names would have to be different. In the tradeoff between appearance and well recognized font names, Apple chose to keep the familiar names and font strikes. To compensate for the stretched fonts, all of Apple's printer drivers include a "vertically condensed" printer option. Selecting this option causes the printer drivers to print with double the screen's vertical resolution. Doubling the vertical resolution effectively makes the pixel aspect ratio about 10:12, or 5:6, which is close enough to square that the fonts look the way we expect them to.

Some fonts are designed for the Apple II GS aspect ratio of 5:12. Such fonts are identified in their font family numbers by having the high bit set.


These questions and answers are compiled by the Apple II Developer Technical Support group. *



Click here to find out more about our best subscription bundle deal ever!
2 years of the magazine, and the all new MacTech DVD ... at 70% off!



Click on the cover to
see this month's issue!

TRIAL SUBSCRIPTION
Get a RISK-FREE subscription to the only technical Mac magazine!
 
 


MacTech Magazine. www.mactech.com
Toll Free 877-MACTECH, Outside US/Canada: 805-494-9797

Register Low Cost (ok dirt cheap!) Domain Names in the MacTech Domain Store. As low as $1.99!
Save on brand compatible and name brank ink jet and laser supplies.
Save on long distance * Upgrade your Computer
Movies with No Late Fees!

See local info about Westlake Village
SJ * BRJ * BJ * OJ * NITS
Staff Site Links



All contents are Copyright 1984-2007 by Xplain Corporation. All rights reserved.

MacTech is a registered trademark of Xplain Corporation. Xplain, Video Depot, Movie Depot, Palm OS Depot, Explain It, MacDev, MacDev-1, THINK Reference, NetProfessional, NetProLive, JavaTech, WebTech, BeTech, LinuxTech, Apple Expo, MacTech Central and the MacTutorMan are trademarks or service marks of Xplain Corporation. Sprocket is a registered trademark of eSprocket Corporation. Other trademarks and copyrights appearing in this printing or software remain the property of their respective holders.