fixed font loading to be better compatible with windows