Issue with ligatures with inverse font

Hello,
I’m having an issue with ligatures using an inverse font. They don’t display correctly in InDesign.
In Illustrator and Photoshop, however, they look fine.
Here is a sample of “fi” and “os” as they appear in InDesign, along with their corresponding “no clean” version.

And also how I see them in Glyphs.

I hope you can help me.
Best regards!

Can you check the path directions in those glyphs?
And maybe show a screenshot of the outlines?

Hello,
I’ll send them to you here.


The path direction of the f_i is wrong. Black block needs to be counter clock wise and the letter outlines need to be clock-wise.

Ok, but the error remains…

Can you send me the file?

1 Like

That was a tricky one.
The problem is that Indesign is in inserting a space glyph after the ligature. And as your space has a box shape, too …

So you need to duplicate the space, rename the copy to something like space.block and clear the space.
Then add this code at the end of your calt feature:

lookup spaceBlock {
	sub @AllLetters space' by space.block;
	sub space' @AllLetters by space.block;
} spaceBlock;

Thanks Georg,
but I think I’m doing something wrong.
I’m attaching the screenshots and the glyphs, so you can check that I’ve applied what you told me to.


the other way around. The “space” needs to be empty and the “space.block” has the outline.

Now yes!
Very grateful!