Fix incorrect font metrics when the same font is opened with different pixelsizes.