Re: [IUG] Font size in print templates


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Gerri,

Thank you very much for this; it worked beautifully! I actually did a slight variation on your suggestion and changed both the font and the size:

<style fontName='Arial Narrow' size='10'> ... </style>

Steve, thank you for your suggestion also. I was starting to think along the lines of having a separate textfield for the pre-stamp, but wasn't sure how to avoid leaving a blank space when no pre-stamp is used. If I get a chance to experiment with this and come up with something that works, I'll let you know.

Richard

-----Original Message-----
From: innopac-bounces at innovativeusers dot org [mailto:innopac-bounces at innovativeusers dot org] On Behalf Of Gerri Moeller
Sent: Wednesday, September 22, 2010 7:05 AM
To: IUG INNOPAC List
Subject: Re: [IUG] Font size in print templates








Hi Richard:



I've gotten this to work. Here's the code I'm using to do this:





($F{itemFix79}.equals ("ohama") ?"<style size='12'>" +
$F{callEntire} + "</style>" :

$F{itemFix79}.equals
("ohcma") ?"<style size='12'>" + $F{callEntire} +
"</style>" :

$F{itemFix79}.equals ("ohal
") ?"LP\n" + $F{callEntire} :

$F{itemFix79}.equals
("ohcer") ?"ER "+ $F{callEntire} :

$F{itemFix79}.equals
("ohcpb") ?"E "+ $F{callEntire} :

$F{itemFix79}.equals
("ohcpk") ?"E "+ $F{callEntire}:

$F{itemFix79}.matches
("ohc..") ?"J "+ $F{callEntire}:

$F{itemFix79}.matches
("ohy..") ?"YA "+ $F{callEntire}:

$F{callEntire}) +

(!$F{itemv}.equals("")?
"\n" +

"<style size='12'>" +


$F{itemv}+

"</style>":"")


You'll see that if the location code
equals ohama or ohcma, then the call number is printed in 12 point
font. The default font is 18 point. If the location code doesn't
match one of these two fonts, then the default 18 point font is used.



Also, if there's a volume entry, then that also prints in the smaller
12 point font.



-Gerri



Jackson, Richard wrote:


I'm wondering if it is possible to change the font or the text size in the middle of an expression in a print template. We are printing single spine labels on a Zebra printer. I've set up the template so that certain location codes trigger the insertion of pre-stamps above the call number. A couple of these pre-stamps contain a word that doesn't fit on the label, so that its last character wraps to a new line. The solutions I've come up with so far are:






















rjackson at huntington dot org





--



Library Automation Manager





gmoeller at mail dot owls dot lib dot wi dot us

--
This message has been scanned for viruses and
dangerous content by
MailScanner, and is
believed to be clean.




--- StripMime Report -- processed MIME parts ---
text/html (html body -- converted)
---
--
This message was distributed through the Innovative Users Group INNOPAC list
Public replies: INNOPAC at innovativeusers dot org
Update your subscription options: http://innovativeusers.org/iug-discussion-list

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.