flush the font cache after setting a new zoom value.

This commit is contained in:
michaelp%netscape.com 1999-04-08 22:41:17 +00:00
parent 5d2820f0f1
commit 3aaca7efd2

View File

@ -247,6 +247,10 @@ NS_IMETHODIMP DeviceContextImpl::GetMetricsFor(const nsFont& aFont, nsIFontMetri
NS_IMETHODIMP DeviceContextImpl :: SetZoom(float aZoom)
{
mZoom = aZoom;
if (mFontCache)
mFontCache->Flush();
return NS_OK;
}