Access font measurements through BP node

Hi, i’m trying (and failing) to get some font measurements - specifically kerning pairs but i’m just not able to get the thing to compile - any help would be greatly appreciated. The node should just return an INT based on two characters to indicate the space between them - like a ii would be different to a ww.

What i’m actually doing is generating meshes of all the characters of a font, then building lines at runtime a character at a time. It’s working quite well but the kerning info is required or it looks a bit rubbish.

I’m trying to get the int from FSlateFontMeasure

.h

	UFUNCTION(BlueprintPure, Category = "DansWonkyPlugins")
		static int32 GetKerningData(FString LChar, FString RChar, FSlateFontInfo InFontData, FSlateFontMeasure CachedFont);

c++

int32 UMyBlueprintFunctionLibrary::GetKerningData(FString LChar, FString RChar, FSlateFontInfo InFontData, FSlateFontMeasure CachedFont)
{

	int32 InSize = 100;
	const int32 Scale = 100;
	const TCHAR* First = *LChar;
	const TCHAR* Second = *RChar;
	return CachedFont.GetKerning(InFontData, InSize, First[0], Second[0]);
}

Thanks very much in advance, AnswerHub squad.

Dan