Forum Bugs

'src: url ("…' fails silently when embedding fonts

oliof
Hi,
I spent quite some looking for my error in the css file tonight when I was changing some fonts for my project.

It turned out that princexml does not find the font when it's 'src:' is malformed by putting a space between 'url' and the opening parenthesis.

Neither my editor (vim) nor princexml complained about this while parsing; I would expect princexml either to be lenient regarding whitespace or complain about it (ideally, according to the css spec, which I don't know at all).
mikeday
Prince doesn't complain about CSS that it doesn't recognise, for forwards compatibility. However, we are planning to add a switch to enable more informative warning messages about unrecognised syntax.