Re: QXP and changing text attributes
Re: QXP and changing text attributes
- Subject: Re: QXP and changing text attributes
- From: Hans Haesler <email@hidden>
- Date: Thu, 7 Jun 2001 12:00:54 +0200
On Wed, 6 Jun 2001, Timothy Hellum wrote:
>
(...) What I would like to avoid, is the script using the default
>
"fake" bold attribute and actually use the font's alternate bold
>
characterization, such as Quorum Book to Quorum Bold.
Timothy,
I agree with everything what Shane has said. Here is some additional info.
QuarkXPress uses the name (minus the size) of the bitmap file, i.e. the
screen font. You can look it up in the font folder -- or run a script.
Make a text box, type a word, apply the font and run this:
---
tell document 1 of application "QuarkXPress 4.11"
tell current box
tell paragraph 1
font
end tell
end tell
end tell
-->"Quorum Bold"
The "ITC Quorum", which I have at hand, allows for using the bold style.
A text in "Quorum Book" set to bold appears and prints as "Quorum Bold"
although there is a "Quorum Medium" inbetween.
With another font you may be less lucky, i.e. the font appears in
bold or in italic on screen, but the output shows only the plain face.
Or worse (?): the characters are distorted electronically.
One of our magazines has been redesigned, lately. The art director has
picked two fonts where the flags are missing. The texts are written in
Word, paragraphs style sheets are applied and any number of bold and
italic portions of text. The Word document is exported as XPress Tags
file and every bold or italic text appears correctly in the XPress
document.
The layouters use my droplet for importing text, because QXP 4.x doesn't
digest style sheets which are imported with tags but don't exist in the
document. Any missing style spec is replaced by a generic one.
I simply inserted the following handler which replaces the "fake" fonts
with the real faces. The commands which set the style from 'italic' and
'bold' to 'plain' are, technically, not necessary. But with other fonts
this could be important. I do it for the sake of a neater appearence.
---
on convFakeFonts()
tell document 1 of application "QuarkXPress 4.11"
tell current box
tell story 1
try
set properties of every text style range where font is "ScalaLF-Regular" and style is italic to {font:"ScalaLF-Italic", style:plain}
on error
end try
try
set properties of every text style range where font is "ScalaLF-Regular" and style is bold to {font:"ScalaLF-Bold", style:plain}
on error
end try
try
set properties of every text style range where font is "Spiegel" and style is italic to {font:"SpiegelItalic", style:plain}
on error
end try
end tell
end tell
end tell
end convFakeFonts
---
HTH,
Hans
---
Hans Haesler | email@hidden