Hi all,
I’m using a font called Deja Vu (DejaVuSansCondensed-Bold to be precise) which has good language support, but I need it to fallback to some variants of Noto Sans for some languages.
I can’t get it to work however - I’ve set up the fallback font list to containt the true font names of Noto Sans for Japanese, Korean and Simplified & Traditional Chinese (Noto Sans KR, Noto Sans JP, Noto Sans TC & Noto Sans SC) That didn’t work.
I’ve also tried using the filenames rather than the font names (NotoSansJP-Bold, NotoSansKR-Bold etc) - that also didn’t work. Those languages always render empty glyphs.
I’ve read the Unity help on Font importing - it doesn’t say much on Fallbacks other than ‘Font Names : A list of fallback fonts to use when fonts or characters are not available’.
All my fonts are required to be imported as Dynamic - I’m not sure if that makes a difference or not.
Has anyone had any success with fallback fonts?
On Windows, it appears to work, but what is actually happening is that system-provided fallback fonts are being used, not the ones I have specified.
On other platforms, without system-default fallbacks, I just get blank characters.
EDIT : I’ve fixed my own problem. It might be worth leaving this post to help others though.
It turns out that the fallback font list should not be formatted like this :
Font 1
Font 2
Font 3
as I was doing. Instead, it should be :
Font 1, Font 2, Font 3
The documentation on this could be a bit clearer!