Skip to main content
Participant
July 7, 2010
Question

FP 10.1 align justify

  • July 7, 2010
  • 1 reply
  • 692 views

Hello folks,

after updating to FP 10.1 I am having trouble with the justify alignment of the TextFlow. If I use align=justify and lastAlign = justify and the last line of a paragraph only consists of one word the FP 10.1 will split the word on every character.


This should give you a hint how it looks like:

this        is     some

dummy   text    and

shows     last    line

b  e  h  a  v  i  o u  r

If the last line has more than one word, everything works as expected. Is there any way to avoid this behaviour?

This topic has been closed for replies.

1 reply

July 7, 2010

That will happen on any line where the column is too narrow to show more than one word. It happens most frequently on the last line because there may be only one word left to compose on that line.

The textAlignLast property is how you control what the last line looks like. If you set it to "justify" and there's only one word left, you'll get that letter spacing. If it's only two words left you'll tend to get a gigantic space in between the words. If you set it to "left" then it will left align the last line of the paragraph.

dev_piAuthor
Participant
July 7, 2010

Hey Alan,

thanks for the reply. I know what lastAlign does according to an align justify. But the behaviour changed from FP 10 to FP 10.1. In FP 10 if you used lastAlign=justify with only one word in the line, it was placed on the left side. If you added a second word you would have received the gigantic space you mentioned. But it has never affected the characters of a word, only the spacing between words.

New in FP 10.1 is the spacing between glyphs. Or maybe it was already present in the FP 10 but at a way lower extend.

Is there any option that would affect how the TextFlow treats the alignment justify?

July 7, 2010

Ah, you're right. And it looks like in 10.0 if you had a line in the middle of a justified paragraph with only one word it would show up on the left side as well. I don't recall exactly, but I expect we considered that a bug and fixed it in 10.1. Unfortunately I don't think there's a way to control this letterspacing - 10.1 behavior is to set justified lines such that you always have a character at the left and right edge of a line.