Forum How do I...?

Are there any settings for paragraph rendering in PrinceXML?

twantzen
Hi all!

In InDesign (and other typesetting apps) I can adjust some settings regarding how the engine renders a paragraph. I attached a screenshot, where you can see those settings ("Hyphenation & Justification" settings).

You can define the optimal word spacing ("Wortabstand"), a range, in which automatic letter-spacing will be applied ("Zeichenabstand"), and a range, in which the glyphs will be distorted (`scaleX()` in CSS) on a per line basis.

This Youtube video shows and explains in detail, what I mean:
https://www.youtube.com/watch?v=hJoACD9qUeI&t=203s

Is this possible in PrinceXML? Or do you plan to make something like this possible?

Thanks,
Tobias
  1. Bildschirmfoto 2026-07-09 um 15.43.05.png370.6 kB
mikeday
Prince does not have min/max settings for hyphenation & justification equivalent to InDesign. Prince for Books might adjust letter-spacing during justification, but only by a small amount. Glyph scaling is not supported at this time.

An example of where letter-spacing adjustment might be necessary is in this Wind in the Willows sample:

https://www.princexml.com/samples/wind-in-willows/b-format.pdf

(Search for "cold chicken" and see the line that follows with very few word spaces available for justification).

I am curious how you would normally go about applying these settings, for example would you adjust them on a paragraph by paragraph basis in response to bad break choices, or apply them consistently across the entire text? It would help to understand the desired outcomes in order for us to design suitable mechanisms to achieve them.