moved set_fonts code in .onAttach