xsl-list
[Top] [All Lists]

Re: [xsl] FO checkbox from 2 inline ZapfDingbat characters

2010-03-24 02:34:46
You can also use a little known trick ....

<fo:block font-size="12pt">
       <fo:inline font-family="ZapfDingbats" 
letter-spacing="-12pt">❏</fo:inline>
       <fo:inline font-family="ZapfDingbats" 
baseline-shift="2pt">✓</fo:inline>
</fo:block>

You set the letter-spacing to the negative value of the font-size. You may 
need to also adjust the baseline-shift for larger fonts (a little larger).

Kevin Brown
RenderX

Clever Kevin ;-)

Out of interest, how will something like this be supported on the
various FO processors and also in different output mediums. I suppose
only PDF and SVG will deal with this correctly, or am I being stupid
again?

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--