Changing glyphs at the start or end of a word

Hi!

I’m working on creating a handwritten font and have downloaded the demo of FontCreator to give it a try. So far, I’m very pleased with the software; it offers a lot of great features and workflows.

I’ve been experimenting with the OpenType Designer and have successfully created glyphs that change based on the preceding and following letters. I’m also interested in modifying glyphs or letters when they appear at the beginning or end of a word. For now, I’ve been using the space character as the “Backtrack” or “Lookahead,” but this doesn’t work at the start or end of a line. Is there an easy way to trigger a glyph change at the start or end of a word?

Thanks!

To detect the beginning or ending of a word, sounds obvious, but as you noticed it isn’t that easy.

Fortunately there is a way to make it work, as described in this article:

Creating Connecting Handwritten Fonts

What a fantastic tutorial! Thanks for writing it! I will dig into it and see if I can make this work with my font.

Quick question: I assume this functionality is only possible in code, and not using the OpenType UI?

When I try to paste the code into the OpenType code editor, I get this error message:

“[Error] (7: 1): Syntax error: “lookup” expected but keyword “languagesystem” found”

If I try to comment out that line, it also fails at these declarations:

“[Error] (9: 1): Syntax error: “lookup” expected but “@” found”

FEA is selected as the language. Anyone know what could be the issue?

You need to click the Code Editor button at the bottom, not the one at the top toolbar.

Thanks! Was not aware of a second button. Got it working now.