TextField and Dynamically Embedded Fonts Issue

I have an app that dynamically loads fonts at runtime. Most of my TextFields look perfectly fine, but a few of them don’t display the text properly. On these, the text is displayed on top of the TextField, as if the top border were the baseline. What’s more, when they are multi-line TextFields the text does not wrap (wordWrap is set to true). The strange thing is that there is no difference that I can see between the TextFields that work and the ones that don’t. In fact, it is the same code that generates these TextFields (they are also dynamic).

When I set embedFonts to false it works fine, just with the wrong font, of course… so I believe it has something to do with this.