On Aug 31, 2008, at 04:59, Ryan Lortie wrote:

Hi Ryan

On Sun, 2008-08-31 at 03:04 +0200, Andreas Delmelle wrote:
FOP 0.95 (latest binary release) does not yet handle font-selection-
strategy, and simply uses the first specified family in the list
(which would be 'serif' in your example).

I just checked out trunk and built it.  It was actually pretty
straight-forward.

The font selection is working but it's producing some rather awful
results.
<snip />

The first line (the 'ouch' one) produces extremely ugly results: because
the ↑ is touching the ( 1) FOP treats it as one word and renders the
whole thing using Symbol.  Because (+2) contains no unsupported
characters it's rendered as serif. The fonts are substantially similar,
but their baselines (or something? -- I'm no font guy) are completely
out of whack with respect to each other.  The result is that the terms
bounce up and down with respect to each other (see attached PDF).

The second line is something of a workaround for this problem -- only
the arrows are out of place, which doesn't look so bad since they're
just arrows anyway -- but I can't have the spaces there.

Can I suggest using &#x200B; (zero-width space), like so:

<block font-family='serif,Symbol' text-align='center'>
(&#x200B;↑&#x200B;1) (+2) (&#x200B;↑&#x200B;3) (+4) (&#x200B;↑&#x200B;5)
</block>

The result produced when using these as separators, already looks much better.



Cheers

Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to