I am working on designing a Hebrew typeface. I have created alternates that are horizontally elongated. Is there a way to have them automatically used to help with justification?
(I know a lot about letters, and very little about coding! Sorry if this question is phrased in a way that makes no sense!)
As Georg said, there is currently no way for a layout application to automatically apply justification features. Putting things in the JSTF table is one option, and in theory it means that your font will have justification alternates enabled whenever applications do get around to supporting it - but I am not convinced that they will, because there are various problems with the JSTF specification anyway.
Depending on what you want to do, another option would be to release the font as a variable font with the expanded glyphs available via the GEXT (glyph extension) axis. You can see some examples of GEXT axis fonts here, and I have implemented justification via GEXT axis for Armenian fonts in the web browser using my newbreak justification engine. (Because the Armenian font was not a free one I don’t have an example of that online, but it does work - see the Arabic demo for a similar concept which uses the width axis rather than GEXT.)
InDesign (and one other macOS application its name escapes me), support using glyph alternates from the jalt feature for justification and it is probably good enough for Hebrew. jalt is a simple alternate substitution feature like salt, so probably can already be done in Glyphs.
It seems to me like this feature just automatically swaps out any glyph for a jalt version of that glyph, irrelevant of the justification. Am I missing something? Is there a way for it to only use the jalt glpyhs occasionally when it is necessary for the justification?
Not sure what more details you want. If you have a variable font, you can achieve the justification by following the instructions on https://github.com/simoncozens/newbreak
For some reason, I can get this to work for existing fonts, but not my own. My glyphs are named like this “tav-hb.jalt” (tav is the letter name, hb is hebrew) and I have justification alternates enabled in InDesign. Any idea what is going wrong? Thank you so much again!