----- Original Message ----- From: "Andreas L Delmelle" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, March 15, 2007 6:05 AM
Subject: Re: font-weight: bolder


On Mar 14, 2007, at 02:41, Daniel Noll wrote:

Is there a particular reason why when I have a font- weight="bolder", it
doesn't actually make the text any bolder?

Perhaps because "bolder" isn't implemented yet... :-\

http://xmlgraphics.apache.org/fop/compliance.html#fo-property-font- weight

<snip />
I wonder why it wasn't just aliased to "bold" until a better option became available.

Weird, the property resolution code to compute the correct value for "bolder" seems to be OK, so I always thought this was implemented, but now that you mention it, I went looking and it seems no tests have been added to check for this.

The sad thing is that tools like CSS2XSLFO output "bolder" for a <b> tag, so I have to post-process its FO to change them all to bold.

As a temporary workaround, one could easily implement that post- processing via XSLT. Identity transform for everything but the attribute "font-weight" when it has a value of "bolder".

That's basically what I'm doing. In actual fact I'm doing it with a custom XMLFilter which I figured should be slightly faster. I had to use a custom filter anyway because I also had to fix its output to quote font family names with spaces in them (I can nuke that hack once the next stable FOP comes out, of course.)

Daniel Noll

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia    Ph: +61 2 9280 0699
Web: http://nuix.com/                               Fax: +61 2 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.


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

Reply via email to