add font loaded detection