Replaces for-in loop by regular for loop in fonts.js to improve performance