Typophile

Cursive GPOS Vertical Position Not Resetting Between Words

bunnyfly

Hi. I'm using Adobe FDK's feature file to add some GPOS tables into a font I'm working on. The script I'm working with requires pretty complex cursive positioning of glyphs...each stroke flows into the next, sometimes moving upward, downward, forward, or backward. And I'm wondering how to reset the vertical position back to the baseline for each word.

If I use the following as an example [I had to replace the angle brackets with parenthesis to show up in the forum]:

position cursive r (anchor 0 0) (anchor 300 300);

And type "trrr tlll" each r shifts in position properly...but then second word, tlll should start at the same vertical position as the first word does, but it doesn't...the vertical motion of trrr affects everything after it.

I've tried using both anchors, tried using the first and setting the second to 0s, vice versa, I've even tried setting the space character to null anchors like this:

position cursive space (anchor NULL) (anchor NULL);

Nothing works. Any idea how to solve this?! Is there a "vertical reset" positioning command?

Thank you!
] chloe [

Btw - this is my test feature file:

# Script and language coverage
languagesystem DFLT dflt;
languagesystem latn dflt;

feature ccmp {
position cursive r (anchor 0 0) (anchor 200 200);
position cursive l (anchor 300 300) (anchor 200 200);
position cursive s (anchor 200 200) (anchor 0 0);
position cursive space (anchor NULL) (anchor NULL);
} ccmp;

In what software are you testing these results?

With what script are you working?

John: TextEdit, OpenOffice, and Font Explorer X.

Aziz: Gregg Shorthand.

Another way to solve this would be if there's a font out there that uses cursive vertical positioning where each new word returns to the baseline, I could use that as a reference and see what they did. Does anyone know of any?

Thank you!
] chloe [

Check my Amiri font, I use cursive positioning all the time and I never encountered this, but the font is pretty complex (and over-engineered) and I'm not sure it will help that much.

Like Khaled, I've used cursive positioning in Arabic fonts and have not encountered the problem you describe or needed to do anything special in the font. The layout engine should look after this.

Captured from web.archive.org on 27 Dec 2010. view this capture