Fix wide-int related error and cache error in NS font handling.