Unity's dynamic fonts suck, which is why there is a warning message shown in inspector when you try to use them. I've fixed issues with them dozens of times, and other issues always exist. I never trust other people's code for this very reason. Not much I can do here unfortunately.