Fix dpi settings and add a timeout to 1.5 sec delay to writing fontconfig file.