Windows Arial font kerning with TextLayout: TextLayout bug?

image

Have a look at 5Pin Media in the image above and Psy. The P is too close to the following character.
In other software it renders like this:
image

Anyone know why this might be the case?

I don’t know why this happens, but your screenshot shows multiple kerning issues, not just after the uppercase P. It looks like all uppercase letters have Problems.

1 Like

Yes. The P was just the most horrible of a few bad bits of kerning :slight_smile:

image

Here it is using drawText instead of TextLayout

Ouch… now the first screenshot looks really horrible :slight_smile:

Maybe loading the font into FontForge and reexporting it might help TextLayout somehow.

Kerning? Looks like keming to me.

3 Likes

hahahahahahahaha (x100)

1 Like

I’m guessing TextLayout doesn’t use the native text placement?

Didn’t seem to work - and also has some massive kerning issues (see my other thread!).

Though I think we had to disable the native stuff on MacOS at one point because CoreText crashes a lot !! I’ll double check nothing is modified on Windows tomorrow…

Comic Sans walks into a bar. The barman yells “Get out of here. We don’t serve your type.”

2 Likes

@jimc This is totally aside from this post (and related ones from the past) - have you considered using Harfbuzz + Freetype for drawing text consistently? I’ve done this with JUCE in the past, converting the Harfbuzz glyph results to juce::Paths and it worked extremely well.

1 Like

Might be an option - though we need this to work with Text Editor too.