Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!apple.com!gandalf From: gandalf@apple.com (Martin Gannholm) Newsgroups: comp.sys.mac.hypercard Subject: Re: Text Attributes in a HC 2.0 report? Message-ID: <11172@goofy.Apple.COM> Date: 8 Nov 90 03:28:34 GMT References: Sender: usenet@Apple.COM Distribution: comp.sys.mac.hypercard Organization: Apple Computer, Inc. Lines: 39 On the subject of printing reports in HyperCard 2.0: In article emery@linus.mitre.org (David Emery) writes: > I'd like the book title to appear in bold-face, and the entire entry > to be "packed" into one line: > Booch, Grady, _Software_Engineering_with_Ada_, Benjamin-Cummings > Nyberg, Karl (ed), _The_Annotated_Ada_Reference_Manual_, Grebyn Corp. > (_xxx_ represents xxx printed in bold-face). In short, you can't do this (with one entry bold) unless you have a single field containing this information, with the book title bold. You can, however, concatenate several fields to get the effect, but you won't get the font information from the field. Each report item has a HyperTalk expression which can be a field expression (e.g. field "fred") or any other HyperTalk expression, including a function handler call (e.g. myGlobal & field 1 _or_ aFunctionHandler() ). You can also have a string constant, like "Title:". In the case of the individual field expression, you will get the fonts, sizes and styles from the field, exactly as on the page. With other report items that aren't exact field specifications, you'll get the default font, size and style for the whole item. These defaults are in the HyperCard properties printTextFont, printTextSize etc. In addition, you can specify to override any or all text properties. e.g. just the font. In this case, you would retain all the size and style variations in the field with just the font changes. This can be good if you want one font in your field that looks good on the screen, and another for the printed output. Martin Gannholm HyperCard 2.0 Engineer Apple Computer Exclaimer!!! I typed this myself = I speak for myself... ..or..I never said it...Nobody heard me say it...You can't prove anything!