solve font problem, only useful in mac