You are in unknown territory. Since you "found out a bit", you are now the expert and know more than the rest of us. It seems that no one has tried this before, therefore cannot help any further.
Closest thing I can think of is debug the code and find out what values a working cont has, then try to make your new font mimic it. Or copy your new font over one that works and see what happens. Save the original, of course.