On Feb 6, 2007, at 03:59, Daniel Noll wrote:
Jeff Vannest wrote:
Jeremias Maerki wrote:
Try font-family="'Arial Unicode MS'"
http://www.w3.org/TR/xsl11/#font-family says:
"Font family names containing whitespace should be quoted."
font-family="Arial Unicode MS" is already quoted, right? To my
knowledge,
all attribute values must be quoted in order to meet most SGML-based
specifications. I am not familiar with any cases where double-
quoting values
should be recommended.
The reason is that the CSS specification (which XSL-FO happens to
borrow from in this instance) recommends the quotes.
To make matters more interesting, the spec also says that a font
family like "Arial Unicode MS" (no quotes, and note the double
spaces) should also resolve back to "Arial Unicode MS" (single
spaces). FOP doesn't do any of this of course, it splits at the
spaces, which is a spec violation the way I see it.
If anyone feels like fixing it, the problem is roughly:
the standard PropertyParser parses the property "Arial Unicode MS" as
a ListProperty containing three StringProperties
All that needs to be done, IIC, is to override Maker.make
(PropertyList, String, FObj) in FontFamilyProperty. Note that this is
about the only property that can contain spaces, where these spaces
do /not/ signify boundaries between multiple values, as a list of
font-families will be separated by commas.
Should be simple enough for someone who wants to get his feet wet...
Might even take it on myself, if no one beats me to it.
Cheers,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]