[SOLVED] TTF_GetFontKerningSizeGlyphs only returns 0

I can’t get TTF_GetFontKerningSizeGlyphs to return anything other than a 0. I’m unable to find anyone using this function in real code. The only other posts I can find referring to it are talking about how it’s not working for them.

FWIW, I’m getting non-zero values returned. For example with ‘DejaVuSans’ at 32 pixels height it is returning -2 for the adjustment from ‘A’ to ‘V’. At 48 pixels height it’s returning -3 for the same pair of characters. When plotted these look about right.


Maybe I’ll try to do some experimentation, do you have any example code? I thought maybe it had something to do with passing normal char variables but I tried assigning characters to Uint16’s and still got nothing using Roboto. Maybe I’ll try DejaVuSans, but I’m pretty sure Roboto supports kerning.

EDIT: I was able to get non-0 with a large enough font, I guess my expectations of values were off.