So I’m having some justification issues with my font. I think helping the know the precise rules the justification process follows, would be very useful. Is there an explanation fo that somewhere? Couldn’t fine any.
I’m mainly using Pages on Mac for using my font.
So my font is non-English. I’m using normal English keyboard keystrokes for my glyphs, but they do not represent what they usually do.
I want it to justify the text treating all glyphs equally, so it can split text anywhere, but not to split a mark of what it’s marking. I have a number of nonspacing marks.
The problem I have is that it forces some items to be kept together, refusing to break them, and, sometimes forces marks to be separated, leaving them isolated at the top of lines sometimes, rather than at the bottom of the previous line with the glyph they are marking!
An example. I will keep this simple are refer to glyphs as either liga (regular ligatures), nonspacing mark liga, or by name in case of non-liga.
At the bottom of one line, I have:
period + liga + nonspacing mark liga + hyphen
Then there’s a huge gap to the bottom of the line (exactly what I’m trying to avoid).
Then:
liga + parenright (nonspacing mark) + liga + period + liga + nonspacing mark liga + hyphen + comma + liga + hyphen + liga + hyphen_hyphen.liga + comma + nonspacing mark liga + comma [etc.]
The gap is big enough to fit this much of the next line I showed above:
liga + parenright (nonspacing mark) + liga + period + liga + nonspacing mark liga + hyphen + comma + liga + hyphen + liga + hyphen_hyphen.liga
To try to get some of that line to be sent back to the previous line to fill the huge gap, I try using spaces, to make it think they are breaks between words, so it can justify better. The strange thing is, adding a space only fixes things in some positions.
Putting a space after:
liga
does nothing!
Putting a space after
liga + parenright (nonspacing mark)
puts ‘liga + parenright (nonspacing mark)’ back to the previous line, great.
Instead of doing that, putting a space after
liga + parenright (nonspacing mark) + liga
does nothing!
Space after:
liga + parenright (nonspacing mark) + liga + period
that works.
Space after:
liga + parenright (nonspacing mark) + liga + period + liga
doesn’t work. SO far looks like the marks might be stopping it, which would be fine. But then, space after:
liga + parenright (nonspacing mark) + liga + period + liga + nonspacing mark liga + hyphen + comma + liga + hyphen
doesn’t work.
So is it because ‘hyphen’ is ‘punctuation’? Apparently not, because space after:
liga + parenright (nonspacing mark) + liga + period + liga + nonspacing mark liga + hyphen + comma
works fine!
I can sort of fix it by hitting return instead of space, but obviously that doesn’t solve things since the line ending with ‘return’ will not get justified!
If I need to change the attributes of my glyphs, perhaps I can change this behaviour? Would love to know how!
Here is an example of it breaking marks apart from their preceding glyph:
liga + hyphen + nonspacing mark liga + liga
It separates by putting this on the next line:
nonspacing mark liga + liga
It doesn’t accept that the mark is marking the hyphen. I even tried going to ‘info’ on hyphen glyph an un-ticking ‘punctuation’ to see if that helped - no change.
chi-suhi-