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. Consider the following document: <root xmlns='http://www.w3.org/1999/XSL/Format'> <layout-master-set> <simple-page-master master-name='master' page-width='8cm' page-height='2cm'> <region-body/> </simple-page-master> </layout-master-set> <page-sequence master-reference='master'> <flow flow-name='xsl-region-body'> <block font-family='serif,Symbol' text-align='center'> (↑1) (+2) (↑3) (+4) (↑5) (ouch) </block> <block font-family='serif,Symbol' text-align='center'> ( ↑ 1) (+2) ( ↑ 3) (+4) ( ↑ 5) </block> </flow> </page-sequence> </root> 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. The "Character-by-Character is NOT yet supported!" statement on the fonts page appears to prevent me from doing what I want to do without spaces, so are there any other workarounds for this? Is it a bug that the fonts are so far offset with respect to each other? (ps: I'd consider using just 'Symbol' except my equations also contain variable names too and Symbol doesn't have letters). Cheers
evil.pdf
Description: Adobe PDF document
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
