Re: Change Fonts, Size, etc. in Quark Paragraph
Re: Change Fonts, Size, etc. in Quark Paragraph
- Subject: Re: Change Fonts, Size, etc. in Quark Paragraph
- From: Steven Angier <email@hidden>
- Date: Fri, 04 Jan 2002 11:53:29 +1100
- Organization: Macscript.com
Jay Young wrote:
>
I was curious if anyone knows a way to change the properties of text
>
inbetween tabs of a paragraph in Quark 4.11. For example, is it
>
possible to change "See the" to a times font/size 10 pt and "dog run" to
>
a Helvetica font/size 14 pt and then "quickly" to a Geneva font/size 24
>
pt in the following paragraph?
>
>
See the (tab) dog run (tab) quickly.
Yes you can do this, but its not easy and I recommend another method (see below)
>
Right now I have been changing the tabs to returns so that each section
>
is on it's own paragraph and then changing the font, etc. using a repeat
>
loop with:
>
>
set properties of paragraph i to {font:"Times", size:"10 pt"}
>
set properties of paragraph (i + 1) to {font:"Helvetica", size:"14 pt"}
>
set properties of paragraph (i + 2) to {font:"Geneva", size:"24 pt"}
I think that this method is a good direct method. The only other direct alternative I can
think of is to get the offsets to the tab characters in each paragraph and calculating and
building text range references (e.g. text from character n thru (n+z) of text flow 1). Not
pretty.
I feel that it might be better to handle this indirectly, especially if you are doing a lot
of this sort of thing. You can process the text outside of QuarkXPress and delimit and wrap
the appropriate sections in XPress Tags, and hand the the text back to QuarkXPress. I also
think you should be applying character-based styles instead of local formatting (as you
have done).
Steven Angier
Macscript.com