I am using the same jasper's template, the same datasource, the same format. On Jasper Studio justified text looks fine, while generating PDF in Java I get wider spaces in some lines between words. Why it looks different than in Studio? How to fix it? thank you in advance.
Make sure you're not using "logical fonts" like Serif, SansSerif or Monospace. They are wildcard fonts and are replaced at runtime with something else that is available to JVM. Studio's JVM might interpret the font differently than Java app due to different classpath or different JVM entirely. Make sure you're using the actual font and have that font packaged in a font extension.