How to specify an indent of 2ch in XML-FO using FOP

Viewed 839

I'm trying to create an indentation of two characters with a fixed-width font in an XML-FO document. I'm translating it using FOP.

Unfortunately, when I specify a length like "2ch", FOP produces this error message:

[ERROR] PropertyMaker - Unknown length unit 'ch'

The XML-FO documentation states that any CSS-known length unit is allowed, and CSS specifies that ch is the width of the 0 character. So AFAIU this should work and still doesn't.

I also failed to find a concrete list of length units understood by FOP (the ix also didn't work). The em is understood, though. But it represents (even while using the fixed-width font monospace) a width about as wide as 1.5 characters.

Is there a way to specify to have an indent of two characters in monospace?

Is there a comprehensive list of length units supported by FOP?

Is there another way to achieve my goal of indenting by a concrete amount of characters? I could use a hack like 1.3em but that is probably not exact.

1 Answers
Related