improve font family class resolving