Funky "Rattle and roll" font issue with dropped characters

Caught a funky one.

The text “Rattle and roll” renders as “Rattle nd oll” with the third party font I’m using.

image

Funky! Not 100% sure what the exact mechanics are, but the presence of “tt” seems to result in the first character of all following words being dropped.

User reported and I reproduced in a brand new project. I saw the behavior on JUCE 7, develop, 6.1.6, 6.1.2 with juce::Label and g.drawText. We’re both on M1 MacOS 15.4.

It happens with the .otf and the .ttf.

It doesn’t happen with the default font.

Was thinking maybe it could be triggered by a ligature, but can’t get any other combo than “tt” to trigger it!

I love this font and I’m pretty committed to it with this product. Happy to DM it to the team if they can’t reproduce…

It looks like it happens with ft and tf as well as tt letter combinations.

It seems to be MacOS only, rendering seems happy on Windows.

I spoke with the type designer and he was very helpful and willing to provide test files. He said:

There are OpenType CALT feature substitutions for those letter pairs (and CALT is supposed to be on by default).

The type designer ended up providing absolutely amazing support, even looking into JUCE’s documentation.

He wrote the following:

CALT is a standard OpenType feature, I believe it’s been there since the beginning (at least since 1.4). Support has been good everywhere I’ve ever tested it, though it’s a little rare to find in other fonts (it’s most commonly used in script typefaces). From a text engine pov, CALT should be on be default.

It seems like we’re having trouble with the first lookup. If the other lookups are working correctly (‘f’ followed by an ascending character, ‘j’ after a descending character), then it seems like Juce is tripping up on the many-to-one substitution.

He provided me with some alternative builds of the font that fixed my short term issue of needing the characters combinations to render properly in JUCE.

He also pointed out that JUCE has a few typographic concepts confused, swapping the definition of ‘font’ and ‘typeface’ and using ‘kerning’ to mean tracking/letter-spacing.

3 Likes

Is this appropriate here?

w t f ?

:grin:

1 Like