Hi there,
I am displaying Chinese, Japanese, and other languages in my project. I have entire text files that will appear as pages, and I need to write a method to determine if a given font can render the characters in TextMeshPro. These characters will come from a text file.
I tried an approach, but it didn’t work because TextMeshPro dynamically updates the character lookup. Could you please advise on how to achieve this?
foreach (char c in text)
{
if (!fontAsset.characterLookupTable.ContainsKey(c))
{
unavailable.Add(c);
}
}
if (unavailable.Count > 0)
{
Debug.Log($"Unavailable: {string.Join(",", unavailable)}");
}
return unavailable.Count == 0;
Thank you,