Re: font-weight: bolder
- Original Message - From: "Andreas L Delmelle" <[EMAIL PROTECTED]> To: 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 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 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, AustraliaPh: +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]
Re: font-weight: bolder
On Mar 14, 2007, at 20:30, Andreas L Delmelle wrote: (see FontState.getFontState()) Sorry, make that CommonFont.getFontState()... Later Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: font-weight: bolder
On Mar 14, 2007, at 20:05, Andreas L Delmelle wrote: 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 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. Just checked it and, contrary to what I seemed to remember, the properties' values are not OK Plus, FOP's font-subsystem that apparently doesn't know what to do with it yet... (see FontState.getFontState()) First, I'll see if the replacement of the keywords by a numerical value (normal=400, bold=700) cannot be done during property resolution. Then it still becomes a matter of teaching the font- subsystem to do something sensible with those values. Note that numeric values in the range '100' to '500' currently all have the same result as 'normal', and the values '600' to '900' are interpreted simply as bold. Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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 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 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". Anyway, I'm going to look into this ASAP. Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: font-weight: bolder
- Original Message - From: "Vincent Hennebert" <[EMAIL PROTECTED]> To: Sent: Tuesday, March 13, 2007 7:16 PM Subject: Re: font-weight: bolder Hi Daniel, Daniel Noll a écrit : Hi all. 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 Ah. Whoops, should have known to check that list. I wonder why it wasn't just aliased to "bold" until a better option became available. The sad thing is that tools like CSS2XSLFO output "bolder" for a tag, so I have to post-process its FO to change them all to bold. Daniel Noll Nuix Pty Ltd Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +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]
Re: font-weight: bolder
Hi Daniel, Daniel Noll a écrit : > Hi all. > > 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 Vincent > > font-weight="bold" works as one would expect. > > Daniel Noll > > Nuix Pty Ltd > Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +61 2 9280 0699 > Web: http://nuix.com/ Fax: +61 2 9212 6902 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
font-weight: bolder
Hi all. Is there a particular reason why when I have a font-weight="bolder", it doesn't actually make the text any bolder? font-weight="bold" works as one would expect. Daniel Noll Nuix Pty Ltd Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +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]