Increased size of static Font List buffer to support new fonts

being released.  This should really be dynamic.
r=kedl
This commit is contained in:
Jerry.Kirk%Nexwarecorp.com 1999-11-23 13:02:21 +00:00
parent 13fdc55f32
commit d2b79c1047

View File

@ -75,7 +75,7 @@ nsFontMetricsPh :: Init(const nsFont& aFont, nsIDeviceContext *aContext)
char *str = nsnull; char *str = nsnull;
nsresult result; nsresult result;
nsresult ret_code = NS_ERROR_FAILURE; nsresult ret_code = NS_ERROR_FAILURE;
int MAX_FONTDETAIL = 30; int MAX_FONTDETAIL = 50;
FontDetails fDetails[MAX_FONTDETAIL]; FontDetails fDetails[MAX_FONTDETAIL];
int fontcount; int fontcount;
int index; int index;
@ -111,7 +111,7 @@ nsFontMetricsPh :: Init(const nsFont& aFont, nsIDeviceContext *aContext)
fontcount = PfQueryFonts('a', PHFONT_ALL_FONTS, fDetails, MAX_FONTDETAIL); fontcount = PfQueryFonts('a', PHFONT_ALL_FONTS, fDetails, MAX_FONTDETAIL);
if (fontcount >= MAX_FONTDETAIL) if (fontcount >= MAX_FONTDETAIL)
{ {
printf("nsFontMetricsPh::Init Font Array should be increased!\n"); printf("nsFontMetricsPh::Init Font Array should be increased! fontcount=%d\n",fontcount);
} }
if (fontcount) if (fontcount)